MOUSE UP (TOUCH UP) ANIMATION

tomas12343tomas12343 Member Posts: 8
edited November -1 in Working with GS (Mac)
Greetings Gamesalad!

This is my first post,so be gentle :p

I am building a platform game, vertical scrolling type.My actor is moving using the mouse (press and hold),thus on the iphone is press and hold with your hand. What I want to do is when the actor goes up,use an animation that the actor rotates upwards and the exact opposite when the actor goes down. The actor is a fighter plane.

Any ideas?

Comments

  • svnsvn Member Posts: 445
    Create an integer attribute called Rotation. Create a rule: when Mouse button is down,
    change attribute Rotation to 1. Otherwise, change attribute Rotation to 0.

    Create rule: when attribute Rotate is 1,
    rule: Rotate 90 degrees. Otherwise, when attribute Rotate is 0,
    rule: Rotate 180 degrees.
Sign In or Register to comment.