The_Dark_Side_of_Earth/enemies/boss/boss_spawner.gd

14 lines
354 B
GDScript3
Raw Normal View History

extends Node
@export var boss : PackedScene
2025-09-19 15:34:59 +02:00
func _ready() -> void:
2025-09-19 15:35:40 +02:00
pass
func _on_water_water_reached_max_height() -> void:
# The boss spawns once the water has risen to its maximum height.
var node = boss.instantiate()
add_sibling(node)
node.position = %Player.position + %Player.earth_aligner.local_from_global(Vector2.UP) * 1000;
queue_free()