How do I stop the player getting stuck in walls with a my dash move?

0 favourites
  • 5 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • the player is getting stuck in a wall because they are moving really fast I the player to move faster then light when they use this dash move but they sometimes get stuck in a wall i try lowering the speed of it and help a little bit but if i go any lower the speed will not be at the right speed for my game the code is this

  • Moveto does not have stepping. Try using the bullet behavior for your dash instead.

    Alternatively, you can add a custom movement to push out solids on overlap, but I don't recommend that unless you are familiar with how it works, to handle the other unintended behaviors it can cause in certain situations.

  • I use a sprite that I pin to my character. If this is overlapping any of the objects I am not allowed to go through I stop short of said object.

    This video will walk you through:

    youtu.be/An0Lj6JBprg

  • Moveto does not have stepping. Try using the bullet behavior for your dash instead.

    Alternatively, you can add a custom movement to push out solids on overlap, but I don't recommend that unless you are familiar with how it works, to handle the other unintended behaviors it can cause in certain situations.

    i need the moveto behavior it apart of the hole game where the guy does a lightning quick dash attack to a wall then wall jumps to the next one and dash again it use for attacking going through lazer traps and a movement tool in general with a small 1 second cooldown it needed

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nothing you said indicates you need move to. The bullet behavior can do the things you need, with the addition of having stepping mode so it can deal with collisions better at high velocities. You can use both together if you're using move to for other movement mechanics, they are not mutually exclusive.

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