How do I stop custom movement going through solids

0 favourites
  • 3 posts
From the Asset Store
The ultimate voice pack filled with 1,536 files of .......wav and mp3 of individual numbers, letters, and words (that go
  • 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?

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)