How do I fix this so it’s moving one square at a time on the grid?

Trying to make a turn based grid movement game and got this far, but it seems to move two instances instead of one, how do I have it move one square at a time?




IMG_4419

In this event

You aren’t specifying which NewSprite2 to move, so the actions are applied to all of them.


You can add another condition to pick one of the NewSprite2 objects:

But how do I get the squares to move one grid chunk at a time?

Ah, I misunderstood your question. I thought you wanted to move one of the squares (NewSprite2 objects) at a time. But you want to move all NewSprite2 objects one square at a time.

I’d say your issue is because you are using pathfinding and then snapping. It could be that the steps or speed of pathfinding movement is such that the movement covers more than 1 square by the time you change to player movement.

I’m not sure how to fix that - you could look into the waypoints and the NodeX() and NodeY() functions. Here’s the reference page to the pathfinding expressions.

Or you look at using another algorithm to move the NewSprite2 objects.