13 lines
362 B
GDScript
13 lines
362 B
GDScript
extends Node
|
|
|
|
@export var boss : PackedScene
|
|
|
|
func _ready() -> void:
|
|
await get_tree().create_timer(1).timeout
|
|
_on_water_water_reached_max_height()
|
|
|
|
func _on_water_water_reached_max_height() -> void:
|
|
var node = boss.instantiate()
|
|
add_sibling(node)
|
|
node.position = %Player.position + %Player.earth_aligner.local_from_global(Vector2.UP) * 1000;
|
|
queue_free()
|