Rotate Clockwise 2 seconds, then rotate anticlockwise 2 secons...repeat
Hi All,
Something quite simple I guess, and even me of using GS a while seems to have a mental block.
I have an actor, I want it to constantly rotate clockwise for 2 seconds, then rotate anticlockwise for 2 seconds, then back to clockwise...and so on...constantly going back and forth.
I tried to implement something with timers, but it went horribly wrong (think im tired today).
So, any ideas would be welcome.
Thanks again,
Something quite simple I guess, and even me of using GS a while seems to have a mental block.
I have an actor, I want it to constantly rotate clockwise for 2 seconds, then rotate anticlockwise for 2 seconds, then back to clockwise...and so on...constantly going back and forth.
I tried to implement something with timers, but it went horribly wrong (think im tired today).
So, any ideas would be welcome.
Thanks again,
Best Answer
-
mynameisace Hull, UKPosts: 2,484
I'm not on my computer and only managing to get on the forums for a split second a day, but I made this a while back for someone and is timer-free.
http://www.mynameisace.com/TimerlessRotation.gameproj.zip
Ace