I've been working on a Hero Defense game for the past few weeks, and recently decided to rework the terrain. The new terrain includes fairly complex paths for the periodically spawned units to follow to reach an opposing outpost, with several kinks and bends in the way.
My problem is that the units often A) Walk back to their original position once reaching their destination or B) Stray off the path
I have no idea how to fix A, and the only way to fix B I can think of is to make regions at each kink and bend and have them move to the next one once the enter one. The problem with this is it takes a TON of time and is a massive headache, and the movement still doesn't look fluid.
I was wondering if there was a way to make some units only able to walk on certain types of terrain, but not to limit others (My heroes need to be able to move freely). Or maybe to program/trigger in some sort of path command or something that wouldn't involve too much legwork (AKA not having to make tons of regions for one small segment of path...).
Any suggestions?
My problem is that the units often A) Walk back to their original position once reaching their destination or B) Stray off the path
I have no idea how to fix A, and the only way to fix B I can think of is to make regions at each kink and bend and have them move to the next one once the enter one. The problem with this is it takes a TON of time and is a massive headache, and the movement still doesn't look fluid.
I was wondering if there was a way to make some units only able to walk on certain types of terrain, but not to limit others (My heroes need to be able to move freely). Or maybe to program/trigger in some sort of path command or something that wouldn't involve too much legwork (AKA not having to make tons of regions for one small segment of path...).
Any suggestions?