How do I make an AI walk down a path?
FungoEntertainment
Member Posts: 36
I'm making a tower defense game, and I need to make the enemies walk down the curled path. Help, please!
Comments
If you do want your actors to follow a path, set up other actors as invisible blocks - you'll need four - call them 'up', 'down', 'right', 'left'.
On your enemies that are moving, put in a rule:
If you hit 'up' move up
If you hit 'down' move down
If you hit 'right' move right
If you hit 'left' move left
Then just position the blocks where you want them, and when the enemies hit the blocks, they should move in the right direction.
I think this was first suggested by JGary, but I could be wrong...
Hope that helps,
QS
Edit: Just noticed you wrote *curled* path - in which case I have NO idea
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io