How do I make enemies that re-spawn?

Get help using Construct 2

Post » Wed Nov 26, 2014 1:38 am

I am making a top down Zelda like game and I am trying to make it where my enemies will reset or get destroyed when you leave the room but will re-spawn if they have yet to be killed by the player. Thanks in advance for any help I get.
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Wed Nov 26, 2014 3:53 am

Hmmm, this is a good question. I'd be interested to know a proper way to do this as well. My only guess would be doing something along the lines of setting up an instance variable on a type of enemy, name the variable "dead" or something. Then, each time you kill one of them, check their UID and set their "dead" variable to true so, if dead = true --- destroy enemy.

I'd be interested to see what other people have to say too. :)
B
13
S
2
G
1
Posts: 47
Reputation: 1,211

Post » Wed Nov 26, 2014 7:48 am

yeah I have my enemies in a family so that I had have their family keep track of all the hp instances of each enemy
B
29
S
6
G
1
Posts: 93
Reputation: 3,020


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests