Fangames > Programming Questions

bullets going through blocks.

(1/1)

ratherz:
As the title states that is my problem. I cannot figure out how to get bullets to stop going through the blocks. It is extremely random as well. Sometimes bullets wont go through, other times they do. It seems when I touch the blocks it fixes the problem. I may be wrong though. This is on lemon's engine.

Kyir:
Try creating a collision event inside bullets where when it collides with you block object it runs the code instance_destroy()

Other than that, I'm not really sure what you could do.

ratherz:
I thought that would work too, but it doesn't. :(

ratherz:
Ok, I figured it out. Apparently, there was a problem with the mask I made for the block; not solid enough I guess. :x

lemonxreaper:
if there is empty space in the mask the bullets wont collide with it, and with certain h alignments the bullets can pass through since they move over so many pixels every frame.

Navigation

[0] Message Index

Go to full version