So I've got some bullets. They bounce off of solids. I want them to disappear after three of those bounces. How do I do that?
I thought it would be as simple as adding 1 to an instance variable with each bounce, then destroying the bullet when that variable reaches 3, but the problem is that there doesn't seem to be any kind of 'on-collision' event. There's 'on-collision-with-a-specific-object', but not 'on-collision-with-any-solid' by the looks of things. Surely I don't need a separate event for every solid object in the game?
So, um, what do I do?