How do I stop bullets passing through objects at high speeds

0 favourites
  • 3 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • 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

  • 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:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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:

    Thank you, I'll take a look!

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