Multiple Actors Following Path Issue
Hi,
I am currently trying to make a Tower Defense game. The enemies have to follow a path. To do the movement, I created a constant behaviour that makes the actor move to two different attributes (game.EnemyMovetoX and game.EnemyMovetoY). One determines the position on the X axis that the enemy actor should move to, and the other determines the position on the Y axis. To make the path that the enemies follow, I made actors that act as triggers for the enemies (i.e. When enemy actor collides with trigger, change attributes game.EnemyMovetoX and game.EnemyMovetoY to the position of the next trigger, and so on).
With one enemy actor, this works fine. However, when I add in more than one, they bunch up and stop in one area. I presume that this is because all the enemies are sharing the same position attributes, but I am only just beginning to use Gamesalad and can't figure out a way around this.
I hope you can understand my situation, and would be grateful if you would help me out.
Thanks.
I am currently trying to make a Tower Defense game. The enemies have to follow a path. To do the movement, I created a constant behaviour that makes the actor move to two different attributes (game.EnemyMovetoX and game.EnemyMovetoY). One determines the position on the X axis that the enemy actor should move to, and the other determines the position on the Y axis. To make the path that the enemies follow, I made actors that act as triggers for the enemies (i.e. When enemy actor collides with trigger, change attributes game.EnemyMovetoX and game.EnemyMovetoY to the position of the next trigger, and so on).
With one enemy actor, this works fine. However, when I add in more than one, they bunch up and stop in one area. I presume that this is because all the enemies are sharing the same position attributes, but I am only just beginning to use Gamesalad and can't figure out a way around this.
I hope you can understand my situation, and would be grateful if you would help me out.
Thanks.
Comments
Hope this helps.
and same for y cordinates
Thank you for the help, though...I will be trying it out now.