I have a layout where I have plenty of stars that player collects during the game. What I need is to get the initial number of stars that are created on the layout after layer load up and then to be able to substract 1 for each star collected. after the player collets all the stars the variable will be equal to 0 and he can proceed to next layout. How do I get the full number of instances on the start without my manually counting them and just adding the initial value of the count like this? I have tried this event:
System>for each>star Add 1 to variable.
but this adds 1 forever since it is a loop. I would need this without looping, just stop adding to value once it counted all the stars in the layout.
every help highly appreciated