0 Favourites

Change Animation

  • 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

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • I ran into a similar problem a while back. I think what you should try is on the jump animation that doesn't have any other buttons pressed, have it check to make sure that the left and right buttons ARE NOT pressed. So your events will be something like, If UP KEY is Down, and Right KEY is NOT DOWN and LEFT KEY is NOT Down then play animation. Hope that helps.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)