Checkpoints with respawning enemies?

Get help using Construct 2

Post » Sun Feb 21, 2016 10:40 am

I want to have one checkpoint per level and I want enemies to respawn, if the player respawns on the checkpoint!

The checkpoint tutorials I watched helped with creating a checkpoint to spawn at, but all defeated enemies are still dead. I tried to put a "restart layout" before the player-spawn on the checkpoint, but this also creates a player on the beginning of level...

Is there a simple workaround for this? I don't want a checkpoint at the start of the level if possible :D
B
4
Posts: 12
Reputation: 224

Post » Sun Feb 21, 2016 12:39 pm

Do you have some special kind of enemies or same enemies? If you have same... you can just spawn new ones after respawn... ;)

If you have some special ones, i have idea... I don't know if it is the easiest way to do it, but here is my opinion....
You can make global variable "counter" for every kind of enemy, than after respawn you just take the value from that global variable and spawn the exact number of each kind of enemies. :)
B
10
S
1
Posts: 42
Reputation: 620

Post » Sun Feb 21, 2016 1:36 pm

got it working now! :D thx
B
4
Posts: 12
Reputation: 224


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests