Return how many of selected object is in room
instance_number(obj)
Type
Returns: int
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.
oYourObject
Back to Instances
There was an error while loading. Please reload this page.