I have a loading scene with an animation which I want to play when the loading page appears, and then transition to the next scene. I found it is possible to transition to the next scene using the change scene timer, when it is on Auto play, but I cannot play my animated sprite, because it will get stuck and not transition. I also have a Animation play timer, which I also play on auto play.
my code is:
extends ColorRect
onready var godotSprite = $ComputerLoad
onready var tween = $Tween
onready var godotTXT = $Control/WordPig
func ready():
tween.interpolateproperty(godotTXT, 'modulate', Color(1,1,1,0), Color(1,1,1,1), 1, Tween.TRANSBOUNCE, Tween.EASEIN_OUT)
tween.start()
func onAnimationPlayTimer_timeout():
godotSprite.play()
func onComputerLoadanimationfinished():
$ChangeSceneTimer.start()
func onChangeSceneTimertimeout():
gettree().changescene("res://changescenes/Level2.tscn")