How do I solve this "alternative" animation problem?

0 favourites
  • 2 posts
From the Asset Store
4 Block Soldiers with different animations, 400x400
  • By "alternative" I mean alternative input. I have an onscreen joypad that when you touch the direction you wish to go, it moves you. With keyboard you hold "A" to run, but with this you will simply tap the direction again. I have a variable set to go up when you tap that button, on 1 it does the walk animation at the proper walk speed, and on 2 it does the run animation, but it isn't proper. Instead it sticks on frame 1 and doesn't seem to resolve to the rest of the animation. Please help me resolve this issue!

    SCREENSHOT OF THE CODE THAT ISN'T WORKING:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I solved it by adding a few variables, as pushing left and right and holding a "run" button are different keys, I figured different values and reading them as if it were a soft-logicboard seemed to help:

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