boss update

This commit is contained in:
Ultrablob 2024-04-25 15:27:00 -04:00
parent c885095bc1
commit 0c0cc1d5f1
16 changed files with 201 additions and 295 deletions

View file

@ -13,3 +13,15 @@ func spawn():
node.global_rotation = zone.global_rotation
node.global_position = global_position
tween.tween_property(node, "position", Vector2.ZERO, 1)
func eject():
var tween = get_tree().create_tween().set_ease(Tween.EASE_IN_OUT).set_trans(Tween.TRANS_SINE)
for spawner in get_children():
var riangle = spawner.get_child(0)
tween.tween_property(riangle, "position", Vector2(200, 0), 1)
tween.tween_property(spawner, "process_mode", PROCESS_MODE_PAUSABLE, 0)
await tween.finished
for spawner in get_children():
spawner.process_mode = Node.PROCESS_MODE_INHERIT