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