enemy not dying/need them to respawn in a box

0 favourites
  • 2 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Hi everyone,

    I have an enemy a fly that spawns when a box is hit by a bullet. I use one sprite for this and placed the fly on the outside of the layout so player cant see it just like the bullet. on the eventsheet, I said bullet hits the box spawn as many flies as the player shoots this box. I have three problems that have came up due to this.

    1. The flies don't die despite me setting this on the eventsheet.

    Eventsheet for enemy flies

    2. I have no idea how to tell contruct 3 how to place the flies back into the box once the player has killed the flies. for repeat use against the player if that make sense.

    This picture shows the box - I find that if flies are destroyed they don't respawn I would like them to spawn every time the box is shot.

    3. I have a global health on the eventsheet set as three I thought this was messing with the flies health. I removed the global health and set the flieys health manually on the sprite but and then the flies don't spawn at all so I have left the global health alone and they spawn.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1. You are using global variable and not fly instance variable for health

    2. Not sure what this means, from what I can see you can keep shooting the box to spawn flies

    3. Seems like a bug linked to 1. so changing that should fix it

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