[SOLVED]Waves spawn and dies instantly.

0 favourites
  • 3 posts
From the Asset Store
Dodge or Die
$7.99 USD
You are stuck in a room...alone! Gotta survive this space scrape!
  • Hello all,

    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

  • Hey, I took a look at your project. And it seems you just forgot the set the health variable of the brick dudes when you create them. Currently they spawn with 0 health, hence dying instantly

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • EDIT: Thank you very much, you saved me with that remark. I failed to notice this one out ^_^

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