Copy link to clipboard
Copied
i need help with the "limiting degree of rotation movie clip"
I have movieclip. I want to rotate my movieclip with button. I made a script on the button
on(release){
_root.my_movieclip._rotation+=5;
}
The script runs. every time I click on a button, movieclip will rotate +5. but I want to limit rotation.
for example, I limit only to 30 degrees rotation when clicked addition and subtraction rotation to 45 degrees.
is there that can help me?
Copy link to clipboard
Copied
on(release){
_root.my_movieclip._rotation+=5;
_root.my_movieclip._rotation>30){
_root.my_movieclip._rotation=30;
}
}
Copy link to clipboard
Copied
thank's kglad... its work... I hope someday when you get into trouble. you easy finish
Copy link to clipboard
Copied
you're welcome.
(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now