aboutsummaryrefslogtreecommitdiff
path: root/scripts/enemies.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-16 17:14:36 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-16 17:14:36 +0100
commit5781b7dad68c3e01d83365f73b0d35d9e5252f97 (patch)
treedada65ab375ed8287b33e6ffe023f5df5e666d24 /scripts/enemies.gd
parent8e5358aaefa1df729ffc02047e53b62705d6b3b1 (diff)
control system
Diffstat (limited to 'scripts/enemies.gd')
-rw-r--r--scripts/enemies.gd2
1 files changed, 1 insertions, 1 deletions
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")