16 lines
485 B
GDScript
16 lines
485 B
GDScript
extends Node2D
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
$plr/AnimatedSprite2D.visible = false
|
|
var tweener = get_tree().create_tween()
|
|
tweener.set_ease(Tween.EASE_OUT)
|
|
tweener.set_trans(Tween.TRANS_BOUNCE)
|
|
tweener.tween_property($plr/CanvasLayer/fadeout,"modulate",Color("ffffff7a"),0.5)
|
|
await tweener.finished
|
|
await get_tree().create_timer(1).timeout
|