Hi guys....
I have build HTML5 game and I have trouble in change animation.
I want to set Jump Animation when KeyUp is pressed or down
and also set jump animation when KeyUp and (KeyLeft or KeyRight) is pressed or down
but, i want to set Run Animation when (KeyUP and (KeyLeft or KeyRight) is pressed or down) and Player Collision with floor or collision with another object.
the problem is cannot change to Run Animation when (KeyUP and (KeyLeft or KeyRight) is pressed or down) and Player Collision with floor or collision with another object. Animation still in Jump Player
please help me, here my code