From b518f03eebd3cec9d9ae05ce81d438ec8138f0cb Mon Sep 17 00:00:00 2001 From: John Breaux Date: Sun, 31 Oct 2021 22:04:11 -0500 Subject: [PATCH] Improve ship grid alignment when snapping. Fixes #2 --- godot_ship/script/game/moveShip.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godot_ship/script/game/moveShip.gd b/godot_ship/script/game/moveShip.gd index c419f25..a7a82d8 100644 --- a/godot_ship/script/game/moveShip.gd +++ b/godot_ship/script/game/moveShip.gd @@ -22,7 +22,7 @@ func _input(event): if held and not event.pressed: held = false; - position = position.snapped(Vector2(32, 32)) + Vector2(2, 2) + position = position.snapped(Vector2(32, 32)) + Vector2(4, 4) if event is InputEventMouseMotion and held: position = event.position;