How do I make solid work w/ Custom Movement? (w/o Push out)

0 favourites
  • 2 posts
From the Asset Store
Push the Box Puzzle Game likes Sokoban made with Illustrator
  • The picture shows the most sophisticated algorithm I came up with. It makes only one side of the wall work, but at least it does what Its supposed to do until you collide with two or more walls, when It breaks absolutely.

    I have also tried Push out solids at the opposite angle, in case of which the car always stops on collision and can never slide along the wall.

    I have tried Push out solids at the nearest angle, in case of which it oftentimes speeds up the car on collision or on rotation.

    The question is - is there a single way to make SOLID blocks actually SOLID, so that they would be unpassable under ANY circumstances. (Must work with Custom Movement though)

    Pls help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The push out actions don't work that great. To handle multiple walls you need to loop over them and push out one at a time.

    It's the same if you use the customMovement or roll your own:

    https://www.dropbox.com/s/91duuneht38q0 ... .capx?dl=1

    An extra thing to handle is to stop the object's velocity in the direction of the colliding surface, but the behavior needs to allow you to set xy velocity individually.

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