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

Image

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. :(
B
6
S
3
Posts: 122
Reputation: 1,632

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:
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.
B
94
S
33
G
118
Posts: 5,394
Reputation: 75,849


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests