I have been trying to fix this bug in my game for about 2 days now and with no success. I have tried multiple suggestions made here regarding the issue of making "enemy waves" but every time the same bug occurs.
Currently what I want to do is that I am trying to spawn some enemies when all enemies on the screen are dead. So I pick a random spawn point and ask it to spawn an enemy. Unfortunately when the enemy spawns, it is killed instantly and the effect for killing it appears.
I have attached the .capx file. Anyone can tell me what am I doing wrong?
Thank you very much in advance