jumping picture fail

-Timo--Timo- Member Posts: 2,313
hello all,
I now have 2 different jump pictures. 1 for jumping left and one for right.
but when I collide with floor again the picture dont change back to his normal stand picture
how can I solve this?
I now have 3 booleans (jumping, moveright and moveleft)

if jumping is true
if moveright is true
than change image to (jumpright)

if jumping is true
if moveleft is true
than change image to (jumpleft)

if collide with floor
than change image to (stand)

it works fine in air but when I come down again the image is still a jumping one...
please help

Comments

  • DeadlySeriousMediaDeadlySeriousMedia ArizonaMember Posts: 838
    edited April 2013
    Are you telling it to change the jumping behavior to false if the actor collides with the ground? If it's still true that may cause a conflict.
  • -Timo--Timo- Member Posts: 2,313
    ehm... I dont know what you mean
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    edited April 2013
    Try adding in another boolean for when the actor is in contact with the ground, and have a change image to standing when he is touching the ground. Seems like you have a situation for changing images for everything else, but that one state.

    Or you probably could use the "Otherwise" statement in the jumping rule for the image to change to the standing state.
Sign In or Register to comment.