From 5781b7dad68c3e01d83365f73b0d35d9e5252f97 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Sun, 16 Jan 2022 17:14:36 +0100 Subject: control system --- scripts/bullet.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/bullet.gd') diff --git a/scripts/bullet.gd b/scripts/bullet.gd index 3716a4e..2a5df41 100644 --- a/scripts/bullet.gd +++ b/scripts/bullet.gd @@ -13,7 +13,7 @@ var bounce = false var hitlist = [] func _ready(): - _enemies_holder = get_tree().root.get_child(0).find_node("enemies") + _enemies_holder = get_tree().root.get_node("world").find_node("enemies") var _err = $Area.connect("body_entered", self, "collided") func _physics_process(delta): -- cgit v1.2.3-54-g00ecf