added docs section and tweaks to chest spawning
This commit is contained in:
@@ -18,7 +18,8 @@ func spawn_chests():
|
||||
while number_chests > 0:
|
||||
var chest_loc = chest_spawners.pick_random()
|
||||
var instance_chest = CHEST_1.instantiate()
|
||||
get_tree().current_scene.add_child(instance_chest)
|
||||
add_child(instance_chest)
|
||||
instance_chest.global_basis = chest_loc.global_basis
|
||||
instance_chest.global_position = chest_loc.global_position + chest_loc.random_box_pos()
|
||||
print("CHEST SPAWNED AT : ",instance_chest.global_position)
|
||||
number_chests -= 1
|
||||
|
||||
Reference in New Issue
Block a user