|
instance_number(obj) |
|
obj = The object you want to find how many of there is.
Example
This function can be used to check if there are any instances of an object left in the room. This is particularly useful if you have a number of instance of an enemy and you want the player to move to the next level after he's destroyed all the enemy. You can also use multiple check for different objects:
Revision #2 |