level 2 - moving plattforms

level2 almost finished
This commit is contained in:
Jonas Braus
2024-08-02 22:44:01 +02:00
parent a4476f2ce2
commit a706375da0
18 changed files with 46260 additions and 150 deletions
+10 -1
View File
@@ -1,5 +1,14 @@
extends Area2D
@export var load_level: String
@onready var animation_player = $AnimationPlayer
@onready var player = %player
func _on_body_entered(body):
pass
animation_player.play("change_scene")
player.on_pause = true
func load_new_scene():
get_tree().change_scene_to_file("res://scenes/levels/" + load_level + ".tscn")