’m developing a mobile Ludo game in Godot using two scripts: Main.gd and Pawn.gd. The game logic works, but the pawns often “wander” and don’t stay on their assigned positions on the board.
Key points:
The board is scaled and centered dynamically for different screen sizes.
Pawn positions (home_positions, cell_positions, final_positions) are stored as Vector2.
Pawns are children of the Board node, and tweens are used to animate their movement.
When moving a pawn, the position calculations seem to work in theory, but the pawns often appear in the wrong location, especially after scaling or moving the board.
I suspect the issue is related to global vs. local coordinates, but I haven’t found a reliable solution yet.