- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 19
instance_number
        CryoEagle edited this page Jan 5, 2019 
        ·
        1 revision
      
    Return how many of selected object is in room
instance_number(obj)| Argument | Description | 
|---|---|
| Typeobj | Object to count how many | 
Returns: int
Return how many of selected object is in room, for example someone who will play your game can see how many coins are still in level.
int instancesInGame = instance_number(typeof(oYourObject));This code will save to variable int instancesInGame how many of oYourObject are in the room.
Back to Instances