Well there are a number of things you could do. First and most obvious is make it an animation. You could do it with timers and the rotate function also.
My only concern with that quick-and-dirty method is if Interpolate suddenly flips out and decides to get to either point by going right round in a circle.
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
Try setting an angular velocity that suits the speed you want and then just set a time for every 1 second change self.motion.angularvelocity to self.mkntion.angilarvelocity * -1
You can also use interpolate but for that you need to rotate your image 90 degrees to the right before importing it into the actor. Then turn it up 90 degrees. Then you won't have the flip out issue cause you are interpolating between like 80 and 100 for example.
Comments
http://tesseractengine.com/GShelp/wobble.gameproj.zip
My only concern with that quick-and-dirty method is if Interpolate suddenly flips out and decides to get to either point by going right round in a circle.
You can also use interpolate but for that you need to rotate your image 90 degrees to the right before importing it into the actor. Then turn it up 90 degrees. Then you won't have the flip out issue cause you are interpolating between like 80 and 100 for example.
Agreed, @TesseractEngine, that's neat and elegant from @tenrdrmer so +1 Awesome from me as well. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps