From 11b8ae3652140966d8d74a30b7fc1a7fa37a6674 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 2 Apr 2022 23:22:38 +0200 Subject: [PATCH] :wrench: Change again goal access mode --- src/entities/behaviours/AttractedTo.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/behaviours/AttractedTo.gd b/src/entities/behaviours/AttractedTo.gd index ae11d8d..6d54894 100644 --- a/src/entities/behaviours/AttractedTo.gd +++ b/src/entities/behaviours/AttractedTo.gd @@ -2,12 +2,12 @@ extends Node export var movement_per_second: float = 32.0 -export var goal_absolute_path: String = "Game/Fire" +export var goal_path: String = "../../Fire" onready var target: KinematicBody2D = get_parent() # TODO: Use a better algorithm -onready var goal: StaticBody2D = get_tree().root.get_node(goal_absolute_path) +onready var goal: StaticBody2D = get_node(goal_path) signal touching_goal