The_Dark_Side_of_Earth/enemies/boss/boss_spawner.gd

13 lines
338 B
GDScript

extends Node
@export var boss : PackedScene
func _ready() -> void:
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.get_node("EarthAligner").up * 1000;
queue_free()