[C3] How do I splitt walking from running?

0 favourites
  • 2 posts
From the Asset Store
Jump on the mole rats and see how far you can go!
  • Bad question in the title but my problem looks like this...

    Keyboard -> "D" is down -> Simulate Plattform pressing right AND Play set animation to "Walk"

    (I also made an event for realeasing the button to enter the idle animation so I will just ignor it here)

    Now I want a command for running so I did this:

    Keyboard -> "D" is down AND "Shift" is down -> Set Plattform maximum speed to "100" AND set animation to "Running"

    The problem now is that my character animation frezzes at the first frame and I just slide over the ground.

    One command works fine when I dissable the other one.

    Any solution I can do here?


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ok I got "a" solution.

    The actual problem is that the conditions for both events are active and construct doesn't know which event to play.

    SOLUTION: If "D" is pressed, move right and play "walk-animation" BUT ONLY when "shift" isn't pressed aswell.

    Took me an hour to figure that out.

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