How do I solve this "alternative" animation problem?

Get help using Construct 2

Post » Sat Mar 08, 2014 3:45 am

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:
Image
B
25
S
6
G
6
Posts: 265
Reputation: 3,696

Post » Sat Mar 08, 2014 4:54 am

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:

Image
B
25
S
6
G
6
Posts: 265
Reputation: 3,696


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests