Destroy Object Instance


You can call this action whenever you wish to "destroy" an instance, which will remove it from the room. You should note that when you destroy an instance, its Destroy Event is called immediately after the action that calls the destroy. Also note that although the Destroy Event is performed the instant that the action is called, the instance is not immediately removed from the game, and it will continue to perform the code contained in the current event until the end, and only when the current event is over will the instance be removed from the game, at which time the Clean Up Event will be called.

Action Syntax:

Destroy Object Instance Syntax


Destroy Instance Example
The above action block code checks for a collision with any other instance at the position of the calling instance, and if one is found, it destroys itself.