Stopping car from bouncing during collision

Get help using Construct 2

Post » Mon Aug 13, 2012 11:25 am

I don't see any "crazy bouncing" using the solid behaviour:

Michal11.cpax
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Mon Aug 13, 2012 12:08 pm

[QUOTE=Nimtrix] I don't see any "crazy bouncing" using the solid behaviour:

Michal11.cpax[/QUOTE]

Thank you. Well try to hit the wall with front bumper and keep holding up arrow and you will see. It is not like bouncing but more like sliding to the side. The interesting thing is that in the example you sent me if I drive backwards it works perfectly fine :)
B
8
S
2
Posts: 45
Reputation: 1,168

Post » Mon Aug 13, 2012 12:19 pm

[QUOTE=Kyatric] Don't use a tiled background, use several instances of the same sprite with an adapted collision polygon.

Also you might want to use the condition "is overlapping at offset" to anticipate the collision, and not just react to it as with a "on collision" trigger.[/QUOTE]

unfortunately it still does same problems. Sometimes if you angle of car is at certain position you can go through the wall
B
8
S
2
Posts: 45
Reputation: 1,168

Post » Mon Aug 20, 2012 12:13 pm

I hope this is what you were after. I gave the fence a solid behavior and then adjusted your events so that if the car is not overlapping the fence then the back and forward keys will work.

https://dl.dropbox.com/u/93923432/car.png
B
6
Posts: 16
Reputation: 882

Previous

Return to How do I....?

Who is online

Users browsing this forum: chrisinfinger, DemantDigitalArt, farfetchd83, mjj1990, spcsmrf and 8 guests