How do I stop bullet from going through the ground

0 favourites
  • 5 posts
From the Asset Store
Isometric Ground Blocks
$2.25 USD
10% off
25 high quality isometric ground blocks + sprite sheet
  • So I have tried allowing the bullet bounce to be on, as well as a bunch of other things, but my bullet still falls through the ground when it either stops or is going very fast.

    The point of the game is to swipe across the cactus it turns his bullet on, and will launch him through the air. when he hits the ground, i set his angle to self.angle * -1, essentially making him bounce. He has a ground sprite that follows his x position at all times so he will always hit it, but sometimes if you swipe hard enough, and he's going fast enough, he hits the ground, and flies downward and back instead of bouncing back up. Ground is set on event 9, and bounce is checked on event 10.

    https://www.dropbox.com/s/o14r5wfn2493s7q/cactus.capx

  • If the bullet is going to fast it could be hitting the wall before the hit detection kicks in. Can't check the capx right now as I am going to bed but usually you need to balance your speed with your frame rate. If you are going faster than the frame rate can keep up with you will get clipping and items that end up inside or through each other because they collide between frames.

  • thanks bluephaze, I'm getting good fps though, and it still doesn't make sense that, when flying right, and hitting the ground the object would bounce backwards and down. This happens when i give the object a square or a circular collision mask

  • Look at the collision polygon for your sprites and see if any of them are oddly shaped.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • they are all perfect sphere. I did this by making a size 64 circle with the paint brush, put it in the center of the image, then made it guess polygon shape, then applied that polygon to the whole animation

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