Side-Scrolling-Shooter/demo/godot/Scripts/beginning&end.gd
CatAClock 0faf0fa7d7 Multiple things
Engine port 4.5
Textures were not working
Started the CPP
added a few other things
2025-06-11 19:34:06 -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")