How do I stop player moving on key release

0 favourites
  • 6 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • Whenever I use the platform behavior default controls or custom keyboard controls my character continue moving left/right even when I release the pressed key.

    This happens regularly, it can be fine for a few seconds example pressing left will move the player left until I release the key but other times it continues moving left even when I let go of the key.

    Any solution?

  • Take a screenshot of your events or upload the capx.....get better help.

  • Its simply 2 sprites

    Player sprite - Solid & Platform behavior with default controls

    Floor sprite - Solid & Physics behavior made immovable

    I run the project and I can control the player left, right and jump as intended. Problem is sometimes the player keeps moving in direction even when I stop pressing the key.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The player sprite doesn't need solid, just platform behaviour.

    The floor doesn't need physics, just solid.

  • mekonbekon

    dang, i didn't even catch that. See what being up for 27hrs gets ya.

  • I'm still having this problem but I have now noticed that it only occurs when using the Microsoft Edge browser. BUT the problem still remains when testing on Windows Phone, maybe it uses Edge in the background or something to run the game?

    I did some web searching and found a thread on fusions forum from someone having the exact same issue, obviously with different game dev software but same problem. He described it as keys not releasing when let go of them.

    Here's another thread on html5gamedevs: goo.gl/jUolmz

    I don't know what to do. I want to develop my games for Windows Phone but if it is having this issue of keyboard/touch controls having a mind of their own then no one will play my games because they're too glitchy.

    Any thoughts on what may be causing this and possibly how to get around it?

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