spawning enemies at random intervals and destroy.

0 favourites
  • 3 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • 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 .

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Set the behaviour "Destroy Outside Layout" on the enemy, that handles delete outside layout.

    Can you post a screenshot of the events you're using, or the capx file? It'll help the most in figuring out what is going wrong..

  • how to attach an image here. It is not allowing me to add an url.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)