Lets say the gameplay is "touch and destroy", so
1. the game generate/spawn object periodically, and the spawn time increased
2. Player touch the object to add score
3. The object destroy after touch
4. If there is too much object on screen (in certain quantity), it will subtract player life.
I am looking for the event/condition to count the quantity of the object..
So far, I am thinking to create a variable as counter,
everytime spawn object will Add value 1 to that variable,
and every time touch tap object event to destroy object will substract value 1 to that variable.
Then system every tick, check the variable if reach certain amount, then subtract player life
or there is any other way to implement this ? if possible, I want to avoid using "Every tick"..
Thanks in advance :)