How do I make an animation stop to play another?

0 favourites
  • 2 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • i have a animation to move for right left and jump and its everythink alright, but for some reason if i jump pressing A or D my jump animation just play the first frame

    (sorry my english suck, i know)

    here is the code:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is a common issue with conflicting animations playing. On your press A and D events you can add a condition 'jump animation is not playing', this means it will not try and play the run animation when you are the in air. Or in your case because you used a variable you can instead say 'isJumping=0' as the condition.

    You also have another problem where you set idle to true when you start the jump so it will try and play idle and jump together so remove this. You should not have an idle variable, instead use 'player not moving' play idle animation.

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