From 5071247b698d33b63dcbe7834b87776487cc9620 Mon Sep 17 00:00:00 2001 From: CactiChameleon9 <51231053+CactiChameleon9@users.noreply.github.com> Date: Thu, 3 Mar 2022 20:28:04 +0000 Subject: [PATCH] Fix crash in arrow key movement --- src/nodes/world/Cursor.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nodes/world/Cursor.gd b/src/nodes/world/Cursor.gd index f77fe28..c2dac15 100644 --- a/src/nodes/world/Cursor.gd +++ b/src/nodes/world/Cursor.gd @@ -101,11 +101,11 @@ func _unhandled_input(event: InputEvent) -> void: # Here, we update the cursor's current tile based on the input direction. See the set_tile() # function below to see what changes that triggers. if event.is_action("ui_right"): - self.tile += Vector2.RIGHT + self._tile += Vector2.RIGHT elif event.is_action("ui_up"): - self.tile += Vector2.UP + self._tile += Vector2.UP elif event.is_action("ui_left"): - self.tile += Vector2.LEFT + self._tile += Vector2.LEFT elif event.is_action("ui_down"): - self.tile += Vector2.DOWN + self._tile += Vector2.DOWN