Dear All,
Currently, I've faced a problem that a global variable add is not working out.
A global variable "deadEnemy" is increased 1 if enemy's hp <= 0.
But sometimes, the adding function is not applied.
I guess it occurs when 2 or 3 collisions are happening at the same time.
I mean, If there are 25 enemies that hp <= 0, "deadEnemy" must be 25. But sometimes 24.
Please help me!