fixed chest spawn location

This commit is contained in:
derek
2025-03-03 10:46:34 -06:00
parent ea68629594
commit 3e6ad2a56d
6 changed files with 8 additions and 4 deletions

View File

@@ -97,9 +97,10 @@ func _ready():
var chest_loc = chest_spawners.pick_random()
var instance_chest = CHEST_1.instantiate()
print("SPAWNING CHEST AT : ",chest_loc.name)
get_tree().current_scene.add_child(instance_chest)
instance_chest.basis = chest_loc.basis
instance_chest.global_position = chest_loc.global_position
instance_chest.global_rotation = chest_loc.global_rotation
get_tree().current_scene.add_child(instance_chest)
number_chests -= 1