This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
|
extends Control
|
|
|
|
onready var sound = $HitConfirmationSound
|
|
|
|
var remaining_time = -10.0
|
|
|
|
func activate(time):
|
|
remaining_time = time
|
|
sound.play()
|
|
|
|
func _process(delta):
|
|
remaining_time -= delta
|
|
self.modulate = Color(1, 1, 1, exp(remaining_time * 10))
|