Side-Scrolling-Shooter/Project/Scripts/beginning&end.gd
2025-04-15 11:58:44 -07:00

11 lines
327 B
GDScript

extends Node2D
@onready var Animator = get_node("AnimationPlayer")
func _ready():
Animator.play("anim")
func NextLevel():
Global.CurrentLevel += 1
# take a look at the file and change it according to your naming scheme.
get_tree().change_scene_to_file("res://Scenes/level_0" + var_to_str(Global.CurrentLevel) + ".tscn")