Making an actor rotate right, pause, rotate left, then repeat!
ColorplayGames
PRO Posts: 69
Hello!
I have an actor that I would like to do the following:
1) Start with no rotation
2) Start rotating right, speed up, slow down until no more rotation
3) start rotating left, speed up, slow down until no more rotation (in other words, ease in and out)
4) repeat!
I'm sure I could do this with timers or something similar but I was wondering if anyone knew any fancy math equations that might help me out
Thanks for the help!
-Jenna
I have an actor that I would like to do the following:
1) Start with no rotation
2) Start rotating right, speed up, slow down until no more rotation
3) start rotating left, speed up, slow down until no more rotation (in other words, ease in and out)
4) repeat!
I'm sure I could do this with timers or something similar but I was wondering if anyone knew any fancy math equations that might help me out
Thanks for the help!
-Jenna
Comments
The logic would be the same as far as the equation.
http://gamesalad.com/wiki/how_tos:gsc_pacing
If you want to do it mathematically, you would need to use trig.
This post describes the motion of a pendulum, which is sort of similar:
http://gamesalad.com/forums/topic.php?id=7502#post-49724
If the trig is beyond you, I would stick to the Timers and Interpolation. It will give you more control over the look and feel of it.