How do I stop bullets passing through objects at high speeds

Get help using Construct 2

Post » Tue Jul 11, 2017 6:01 pm

This is a repost because I did have a reply to the original post, but I have absolutely no idea how to implement the technique told to me.

I'm looking to make my player jump forward using the Bullet Behavior (he goes at 1000 speed for 0.6 seconds), but basically I want him to be able to pass through certain thin walls, and not be able to pass through other thin walls.

Obviously checking bounce on solids means he cannot get through either of the walls, but even making it so that the bullet stops, or the player stops, when colliding with one wall, he keeps going.

I read this is because the game checks once per tick, and if a bullet is too fast it can pass through thin objects. Is there a way I can do this without making one of my walls super thick?

This is the original solution provided but looking for something a little simpler... http://imgur.com/a/BQRXJ :( :(
B
12
S
2
G
1
Posts: 47
Reputation: 781

Post » Tue Jul 11, 2017 7:39 pm

There is no way to use a bullet for this purpose. Switch to rays instead. I used jcw_trace (raycast) plugin and it works just fine.

You can find some ideas in this topic: viewtopic.php?f=147&t=192956
B
16
S
6
G
1
Posts: 23
Reputation: 1,707

Post » Tue Jul 11, 2017 8:51 pm

ankas wrote:There is no way to use a bullet for this purpose. Switch to rays instead. I used jcw_trace (raycast) plugin and it works just fine.

You can find some ideas in this topic: viewtopic.php?f=147&t=192956


Thank you, I'll take a look!
B
12
S
2
G
1
Posts: 47
Reputation: 781


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 32 guests