Hello friends !
I am trying to make a free run game.. I have a group of enemies that spawn in the game depending on the distance covered by the player.
These enemies will stop spawning after a specific distance..and then will respawn again after the player has traveled a set distance..
so fr example..
spawn enemy1 when the player distance is between 0 to 500 mts
spawn enemy2 when the player distance is between 250 to 750 mts
spawn enemy3 when the player distance is between 500 to 1000 mts
the type 1 enemy spawn will stop when the player distance >= 500
type 2 enemy spawn will stop when the player distance >= 750 and so on..
this is kinda easy..to achieve..
I have 4 types of enemies in the game..
Each of them spawn after a set amount of distance..it's easy to make them spawn the first time.
but as the player progresses in the game..with covering more distance i want to make the same enemies come back with more health
so for example..after 1000 mts
spawn enemy 1 with health 2 player distance is between 1000 to 1500 mts
spawn enemy2 with health 2 when the player distance is between 1250 to 1750 mts
spawn enemy3 with health 2 when the player distance is between 1500 to 2000 mts
This should work in a loop for every thousand meters and the enemy should respawn with +1 health every loop.
Please help !