extends Node


@onready var level_path = "levels/level_"


#Show upcoming level

func _ready():
	$"/root/Global".Level = 1 
	await get_tree().create_timer(2.0).timeout
	$Label.show()
	$CharacterBody2D_level.show()
	#print("Visibility On!") #Verify visibility
	await get_tree().create_timer(3.25).timeout
	$Label.hide()
	$CharacterBody2D_level.hide()
	#print("Visibility Off!")
	await get_tree().create_timer(1.0).timeout
	get_tree().change_scene_to_file(str(level_path,$"/root/Global".Level,".tscn"))
	
