Sprite animation: not working as I want.

Post your own tutorials, guides and demos.

Post » Tue Jan 13, 2009 4:56 pm

Okay, that one's partially my fault. The Else condition isn't proper here, as it will be setting the angle to the left if you're not moving. You want to do this, instead:

EVENT ONE:
sprIvoRobotnik [Platform].VectorX GREATER than 0
sprIvoRobotnik: Set angle to 0

EVENT TWO
sprIvoRobotnik [Platform].VectorX LESS than 0
sprIvoRobotnik: Set angle to 180

That should fix it. Also, with the Else condition, it's supposed to be placed directly under the event it effects, not as a subevent. Sorry for all of the confusion here.
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Tue Jan 13, 2009 5:07 pm

Should've occurred to me anyway, really. Still, thanks for the help!
B
2
S
2
G
3
Posts: 158
Reputation: 1,566

Previous

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest