Simulate Right not working

0 favourites
  • 4 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • I have a platform behaviour that I can simulate jump but not moving right. It works if the default keys are enabled but not if I try and customise them. Why is this?

  • Your condition says "on key pressed" - that's a single button press. So the player presses a button once, and a single action happens because of it. If you want to read a continued button press, you need to use the action "is key down". This is an important difference to know and understand, as events in Construct are either based around single or continued triggers.

  • Thanks. What confused me was that key pressed worked for Jump. Any why changed them both to Key Down and all good

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • abasel you'd want to keep the "on key is pressed" for the jump. While construct is smart enough to know and the player wont go up flying, some times is better to make the jumping with the set vector Y action and a negative number (-650 will have the same result as the default jump). This can be useful for wall jumps and other non standard cases.

    Have in mind that there are things that act as triggers (press this and a light turns on) and other things that need constant feed in order to execute (like gradually moving something a distance over time). Jumping falls in to the first category, as you can only jump once per jump and only if you are grounded. The movement on the other hand needs constant input feed in order to know for how long should the player move.

    Events/conditions that act as triggers are depicted in Construct with a green arrow on the left side of the event. Otherwise, the events run every single tick. If you want an event to run only once and act as a trigger, you can add the "Trigger once while true" condition. This can be found under the system conditions.

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