How do I create different individuals from one object

0 favourites
  • 3 posts
From the Asset Store
112 High-Quality destruction sounds for videogames
  • Hello,

    I have the following problem that I would like to solve:

    I want to make a zombie shooter and I've created two characters: the survivor and the zombie.

    Now if I want to let the zombie spawn every 2-5 seconds (so I can kill him), all outside influences affect to all of the spawned zombies.

    This means: I kill a zombie - Are all killed.

    How can I solve this problem?

    Greetings from Germany!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Do what I tell you:

    1- add instance variable "outsidelayout" and set it to 1, then add condition: "Zombie is outside layout" ==> action: "Set zombie outsidelayout to 0"

    2- Condition: "if zombie outsidelayout is equal to 0" ==> action "Zombie destroy"

    Hope it helps!

  • Hi dudelino,

    1. You can find a lot of basic information like this in the manual. Pls check it first next time.

    2. If you have a problem you should be more precise and add a capx file showing the problem.

    3. To the problem:

    a. If you wanna kill an enemy that is outside the layout: there is a behavior for that (easiest way)

    b. If you wanna kill an enemie by player you should do this via collision detection.

    • Player spawns bullet => bullet on collision with enemie => destroy enemie and bullet

    Other bullets or enemies will not be affected.



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