Hey there! Hope you are doing well.
I'm working on a top down video game and I have a superpower that destroy every ennemis that are overlapping a specific zone (zone is basically an invisible round sprite object).
But in order to get my scoring mecanic right, I need to know how many ennemis has been destroyed to get the proper score out of it.
(ex : 1 enemy detroyed = 50pts. If 3 enemies were destroyed I want to add 150pts).
But I'm struggling to find how I can count how many ennemies were overlapping the zone when the superpower came in.
Your help would be much appreciated :)
Thanks