Discussion in 'Programming' started by Captain_ArrowWound, Feb 10, 2019.
I am making a game where players and enemies both fire bullets. If they hit a tree, rock or something like that the bullets are destroyed. This takes a while to do because I have to implement it in each object by adding instance_destroy in the object collision event. I'm wondering if there is a easier way for me to do this?
Use a parent object named obj_terrainParent or something, and put your code in that, and make all the objects that you want to behave this way children of that parent object.
Toque and CameronScottCreations like this.
Thanks I did that and it works perfectly!
One question though, is there any function that acts as within. Such as if collision with bullet, destroy bullets within a certain range.