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

Get help using Construct 2

Post » Wed Jun 14, 2017 11:42 am


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. :(
Posts: 139
Reputation: 1,666

Post » Wed Jun 14, 2017 7:33 pm

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: ... .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.
Posts: 5,519
Reputation: 83,476

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests