added an assassinate target modifier

This commit is contained in:
Derek
2025-05-04 23:35:43 -05:00
parent 68facaf544
commit 6521b39492
20 changed files with 467 additions and 24 deletions

View File

@@ -19,8 +19,14 @@ func _on_body_entered(body: Node3D) -> void:
timer.start(1)
var scene = load(level_info["level_path"]).instantiate()
scene_holder.add_child(scene)
scene.global_position = global_position + SCENE_SPAWN_OFFSET
var spawn_tube_offset_pos = Vector3.ZERO
if scene.tube_top != null:
spawn_tube_offset_pos = scene.tube_top.position
scene.global_position = global_position + SCENE_SPAWN_OFFSET + spawn_tube_offset_pos
var level_control = get_tree().current_scene
level_control.spawn_crown()