How do I stop a sprite with Platform behavior in mid-air?

0 favourites
  • 2 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • Trying to make my player stop in mid-air if a button is clicked.

    * Disabling the Platform behavior doesn't do it.

    * Setting gravity to 0 doesn't do it.

    * Enabling Solid behavior doesn't do it.

    * Setting his y to Self.Y in addition to all the other things doesn't do it.

    I'm sure that these actions are triggered because if I toggle them to 'disabled' it behaves differently.

    But the player keeps having the impulse that it had even with all these. It flies up if I was on the way up, or falls down slowly if I was on the way down.

    How do I stop it completely?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I solved it by mistake somehow :)

    I think I was taking it in and out of the state every frame.

    Will try to post an example project next time I ask.

    Thanks

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