Maintaining Creep Distance
specialist_3
Member Posts: 121
Hi,
I have modified my tower defense game from spawning/destroying to recycling pre-spawned actors. My creeps follow a pre-set path and the player has to kill them while they are moving. If creeps are not killed and they complete the path, player loses a life. Each time the creeps (actors) are either killed off or complete their path, they are reset to their original start position to commence the cycle again. This seems to work fine.
BUT, when they are reset to their start position and move again, some of them seem to overlap one another OR stick close to each other. How do I maintain a certain distance between each creep?
I anticipate one suggestion that I could preset different (sequential) start positions for each creep but again the problem might persist because if a creep which starts at position 5 (furthest from start point) is killed first and then a creep which starts say at position 2 is killed next, the delay would give just about enough time for both the creeps to overlap or come too close.
Please help...
I have modified my tower defense game from spawning/destroying to recycling pre-spawned actors. My creeps follow a pre-set path and the player has to kill them while they are moving. If creeps are not killed and they complete the path, player loses a life. Each time the creeps (actors) are either killed off or complete their path, they are reset to their original start position to commence the cycle again. This seems to work fine.
BUT, when they are reset to their start position and move again, some of them seem to overlap one another OR stick close to each other. How do I maintain a certain distance between each creep?
I anticipate one suggestion that I could preset different (sequential) start positions for each creep but again the problem might persist because if a creep which starts at position 5 (furthest from start point) is killed first and then a creep which starts say at position 2 is killed next, the delay would give just about enough time for both the creeps to overlap or come too close.
Please help...
Comments
Good luck with a solution.
_________________________________
Nesen Probe: Is this the single most unappealing game in the history of GameSalad? I can't seem to give it away! Anywhere. But if anyone want's to try it out, codes are still available! http://gamesalad.com/forums/topic.php?id=8097