Random formation change

0 favourites
  • 2 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • I'm having some trouble getting enemies that are created by the system to be destroyed. Basically what I'm trying to do is have a platform full of enemies in a random formation when a button is pressed. I have provided a capx below of what I have tried.

    What I want:

    When spacebar is pressed the formation of the previous enemies on the platform are destroyed, and the same set of enemies are respawned but in fewer numbers and at different positions.

    Here's a capx of what I have tried to do: ***Change group "destroy" to activated and it should allow you to destroy the enemies.


    I tried to make it so when the user presses "M" the enemies are destroyed but that didn't seem to work either.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're trying to deactivate groups that don't exist (formation1 and formation2).

    At the end of the Destroy group, add a blank sub event and set group destroy deactivated. At the moment, the destroy group is activated then it's left running every tick. The blank sub event with the deactivate action will execute the events in the group once, then deactivate it.

    Is that what the problem is?

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