Hello ,
I want to spawn an enemy every n seconds. So I have created a empty sprite and named it enemy spawn and ,created an event to spawn another object every 5 seconds. I am moving that object to left and if it crosses the left border I am deleting it .
But every 5 seconds , several of the enemies like 4 or 5 are being created.
How do I achieve enemy spawning and deleting them when they cross the viewportLeft(0).
Also , Before I have tried to create a container for enemyspawn called enemies. And I want to add an enemy when it is being created (But i cannot do it), so that i can loop through and find out which enemy has Enemy.x < 0 and destroy only it .