How do I stop custom movement going through solids

0 favourites
  • 3 posts
From the Asset Store
Run and Jump in 3 Dimensions! Take your platformer to the next level!
  • Hey. Using a custom movement for a dash move in my game, but the player goes through walls if I dash in their direction. Is there any way to have the custom movement stop when it hits a solid?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • From the manual, people forget to read:

    Push out solid

    Only valid when the behavior is currently overlapping an object with the solid behavior. Automatically move the object until it is no longer overlapping the solid. This has no effect if the object is not currently overlapping a solid. The following techniques can be used:

    Opposite angle reverses (or 'backtracks') the object from its current angle of motion until it is no longer overlapping.

    Nearest moves the object in an eight-direction spiral out one pixel at a time until it is no longer overlapping. The aim is for the object to end up in the nearest free space, but since only eight directions are used it will be an approximation.

    Up, down, left and right moves the object along a specific axis until it is no longer overlapping.

  • Push out solid, eh? Sounds vulgar! Haha!

    Thanks for the help. I'll give it a go.

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