360 rotation

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.

Comments

  • POMPOM Member Posts: 2,599
    edited March 2013
    Hey @dcroni,
    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.
  • dcronidcroni Member Posts: 4
    Thanks roy! its a small thing but it adds a little personality.
Sign In or Register to comment.