Added respawn logic ... and with it also a complete rehaul of how managing scene instances work to make it work
This commit is contained in:
11
evolve-die-repeat/molecular/fade.gd
Normal file
11
evolve-die-repeat/molecular/fade.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends CanvasLayer
|
||||
|
||||
@onready var color_rect: ColorRect = $ColorRect
|
||||
|
||||
func _ready() -> void:
|
||||
color_rect.color.a = 0
|
||||
|
||||
func fade(target_alpha: float, duration: float):
|
||||
var tween = create_tween()
|
||||
tween.tween_property(color_rect, "color:a", target_alpha, duration)
|
||||
return tween
|
||||
Reference in New Issue
Block a user