360 rotation
dcroni
Member Posts: 4
I'm trying to make a refresh button rotate 360 when pressed, and then to reset the scene.
I've tried the different rotate behaviours, but im guessing im missing some sweet spot when it comes to values. It seems to work and rotate a little, or not at all. I'm new to GS, and I havent had much luck finding an answer online yet.
I've tried the different rotate behaviours, but im guessing im missing some sweet spot when it comes to values. It seems to work and rotate a little, or not at all. I'm new to GS, and I havent had much luck finding an answer online yet.
Comments
Very simple actually.
Make a self boolean "self.im pressed"
Now a rule:
When touch is pressed AND when "self.im pressed" IS false :
Change "self.im pressed" TO true.
Now a new rule below it:
when "self.im pressed" IS true :
Interpolate "self.rotation" to 360 (set the duration to whatever you want)
Timer - after (the duration you put in the interpolate)-
Change "self.im pressed" TO false.
Change "Game.refresh" to True.
Roy.