Hi this is my first post so go easy on me. I have searched but cant find info on a way to count the number of hits an object receives and and destroy it after it has been hit say 5 time.
My guess is that I need to count the number of collisions in a variable and then when the variable = 5 destroy object. But I can figure out how to do that. Oh yes and the object to destroy is an instance.
I have been trying to adapt this script that destroys after a period of time but no joy so thought i would put my hand up.
for seeing if the object is getting hit 5 times I'd think you'd simple do this...
answered Jun 12, 2011 at 02:27 AM