Make a boolean call it jump then when jump is pressed change it to true then in the character make a rule if jump is true animate or change image to the jump sequence.
You will need to make a rule if overlaps or collides with platforms change attribute game jump to false depending on what your doing.
You could also use an integer but i found for complex animation booleans are better.
utopiangames said: You could also use an integer but i found for complex animation booleans are better.
How does a boolean work better for this? I'm working on an app with a bunch of game attributes that serve as flags to trigger different actor behaviors, and if there's a major difference between using booleans and using integers for this, that would probably be really helpful to know for planning and design.
Comments
You will need to make a rule if overlaps or collides with platforms change attribute game jump to false depending on what your doing.
You could also use an integer but i found for complex animation booleans are better.
Darren.
Thanks!