When ever the change scene is triggered it flashs a grey screen for few frame before loading
so basically
scene 1
grey flash
scene2
relavent code:
@onready var boss_arena: PackedScene = preload("res://scenes/eye_arena.tscn")
func _tarnsition_to_boss() -> void:
$AnimationPlayer.play("fade out")
await get_tree().create_timer(0.5).timeout #exact time of animation
get_tree().change_scene_to_packed(boss_arena)
func _on_player_interact():
# Trigger boss transition if interacting with gate
if GameManager.active_obj.is_in_group("gate"):
_tarnsition_to_boss()
GODOT 4.4