Problems With Move To command
![TwilightHunter](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Heyya, I have an issue here.. I'm using Move To for an actor to move towards the X and Y of another actor I constrained the X and Y to. So:
-Move To:
global.PlayerX
global.PlayerY
Speed: 100 (Whatever)
Now this works fine (obviously) but my problem is once they hit that X and Y coordinate. They stop following it, even if the other actor moves. How do I make them follow the X and Y always, even after they've hit it once?
-Move To:
global.PlayerX
global.PlayerY
Speed: 100 (Whatever)
Now this works fine (obviously) but my problem is once they hit that X and Y coordinate. They stop following it, even if the other actor moves. How do I make them follow the X and Y always, even after they've hit it once?
Comments
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Also, is there a way to have a clean movement in the direction the actor is rotated? Right now I'm using accelerate, but the actor "Accelerates" in the direction it's rotated in so it takes more than a few seconds to move in the correct direction.
My collision isn't working on some of my actors though. See I have 4 actors. The main piece, Piece 2 (follows main piece), Piece 3 (Follows piece 2), Piece 4 (Follows Piece 3)
The main piece can collide with the other pieces, this means they can't ever hit the X and Y they're following, so they never stop. But on the other Pieces I want them to collide with each other, so I dropped in the collide behavior for each piece, and nothing happens. It works with the main piece, but I'm guessing this is because it's moving on it's own, whereas the other pieces are "Moving To" the X and Y, and it's somehow canceling out my collision.
If self.Position X is not equal to global.Player X
If self.Position Y is not equal to global.Player Y
Move to
global.Player X
global.Player Y
speed 100 (or whatever speed)
This will make it always follow the player, and not just stop once it gets there