N
Necromedes
Guest
Game Maker 1.4
I'm working on a side scrolling shooter and I'm creating a dreadnought that has turrets that the player must destroy. Upon doing so, the dreadnought is then destroyed as well.
The only way I can think of doing this is to store the instance ID's of the turrets after they're created by the dreadnought and check if they exist and when neither do, the dreadnought is destroyed.
My question is, what is the simplest way to do this? I've not worked on getting and storing instance ID's yet, so please try to keep the explanation easy to understand for me.
Thanks in advance.
I'm working on a side scrolling shooter and I'm creating a dreadnought that has turrets that the player must destroy. Upon doing so, the dreadnought is then destroyed as well.
The only way I can think of doing this is to store the instance ID's of the turrets after they're created by the dreadnought and check if they exist and when neither do, the dreadnought is destroyed.
My question is, what is the simplest way to do this? I've not worked on getting and storing instance ID's yet, so please try to keep the explanation easy to understand for me.
Thanks in advance.