disable sg2083 and pan camera over to fami when defeated

This commit is contained in:
Haze Weathers 2024-02-29 00:40:38 -05:00
parent 12d6adaf94
commit 3ff2f837d8
5 changed files with 32 additions and 4 deletions

View file

@ -33,3 +33,11 @@ func _on_cutscene_finished() -> void:
func _on_2083_energy_changed(amount) -> void:
sg_energy.value = amount
func _on_Famira_died() -> void:
sg2083.state = sg2083.State.INACTIVE
print("HEHE")
var tween = create_tween()
tween.set_trans(Tween.TRANS_CUBIC)
tween.tween_property($"%Camera", "global_position:x", famira.global_position.x - 128, 0.5)