extends Control func _ready(): $Flash.visible = false #func _process(delta): # pass func update_player_hp(hp, hpmax): $PlayerHp.text = "Player: %d/%d" % [hp, hpmax] func update_enemy_hp(hp, hpmax): $EnemyHp.text = "Enemy: %d/%d" % [hp, hpmax] func start_flash(): $Flash.visible = true $FlashTimer.start() func _on_FlashTimer_timeout(): $Flash.visible = false