Why does an integer degrade in value?

Hi,
as the player destroys more enemy characters the NumOfEnemy gets skewed till it reaches 0.
Something weird is going on, more enemies spawn when I kill one but there’s less enemies overall.

Hello! I think you can implement all stuff just without timer, based only on events.

Hi Kehel. How would I do that? I want my enemies to constantly spawn and attack the player.