Count number of objects

How can i count the number of an object,
(like ,there is 7 of this object) ,and show the number on the screen?

One way to do this is to add all Objects into a group then use Advanced->Compare two numbers

You can do this without the Group just compare the quantity with the count() function and your object
like count(enemies_sprites) > 10


So. How can i know the number of the objects that are in collision with the player, or in a specific place?


Use the Count expression after the condition, IIRC the count expression is affected by object selection.

1 Like