How do I Ignore physical key presses without ignoring simulated key presses? [solved]

0 favourites
  • 4 posts
From the Asset Store
Make your combats so much more realistic with this Sounds! :D
  • I have a character using the platformer behavior that is constantly moving and should stay constantly moving, I achieve this through simulate keypress but the platformer behavior let's you physically press the other direction and stop. How can I alleviate this?

    example: clumsysnail.com/pizzaslicer

  • Hey chris, here's an example:

    drive.google.com/file/d/1AgQ48mOVC5n-yQ-dtORxOSy3FQEiT9Do/view

    Basically I unchecked the "Default controls" option for the platformer object and simulate the controls of jumping and falling through, because I see in your example that this is the only controls you need.

    Hope it helps :)

  • Hey chris, here's an example:

    https://drive.google.com/file/d/1AgQ48mOVC5n-yQ-dtORxOSy3FQEiT9Do/view?usp=sharing

    Basically I unchecked the "Default controls" option for the platformer object and simulate the controls of jumping and falling through, because I see in your example that this is the only controls you need.

    Hope it helps :)

    Holy crap that was easy, I feel a bit stupid. Thank you so much!

    Also in the example you don't even need to mess with the x, simulate left and right still works. The fix was literally just a check box and a up key = jump event.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Holy crap that was easy, I feel a bit stupid. Thank you so much!

    Lol, your brain was just tired, it happens. Glad it helped.

    Also in the example you don't even need to mess with the x, simulate left and right still works. The fix was literally just a check box and a up key = jump event.

    You're right, I feel stupid now ^^

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