Hi all,
I'm still relatively new to Godot and I have a problem.
I'm trying to set up a scene change through a node called "portal".
Basically the idea is to start a FadeOut( or blackout) animation, wait until the animation is done, change the scene, and then begin Fading In.
However, the problem that I'm facing is that FadeOut, yield and change_scene work, but the FadeIn animation doesn't.
what could the problem be?
tool
extends Area2D
export (String, FILE) var next_path = ""
func _on_Portal_body_entered(body):
$AnimationPlayer.play("FadeOut")
yield($AnimationPlayer, "animation_finished")
get_tree().change_scene(next_path)
$AnimationPlayer.play("FadeIn")
yield($AnimationPlayer, "animation_finished")