Jump animation

SwaggedSwagged Member Posts: 50
edited November -1 in Working with GS (Mac)
i have an actor who can jump and i set a different image for it to look like when it jumps but it doesnt change when i hit jump

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    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.

    Darren.

    image
  • SprucieSprucie Member Posts: 12
    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.

    Thanks!
Sign In or Register to comment.