From 5781b7dad68c3e01d83365f73b0d35d9e5252f97 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Sun, 16 Jan 2022 17:14:36 +0100 Subject: control system --- scripts/enemies.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/enemies.gd') diff --git a/scripts/enemies.gd b/scripts/enemies.gd index 37c1f6b..62c64ea 100644 --- a/scripts/enemies.gd +++ b/scripts/enemies.gd @@ -30,7 +30,7 @@ var colors = [ func _ready(): - var root = get_tree().root.get_child(0) + var root = get_tree().root.get_node("world") _fx_holder = root.get_node("fx") _path = root.get_node("path") _resources = root.get_node("player").get_node("resources") -- cgit v1.2.3-54-g00ecf