diff --git a/objects/player/player.gd b/objects/player/player.gd index 32150d0..24a420b 100644 --- a/objects/player/player.gd +++ b/objects/player/player.gd @@ -74,6 +74,8 @@ func _physics_process(delta): velocity.y = 0 #Apply velocity move_and_slide(velocity,Vector2.UP) + + Debug.print(get_owner().filename) func _process_idle(): if anims.get_current_animation() != "idle": anims.play("idle") @@ -251,7 +253,7 @@ func die(): Game.arrows = 0 Game.lives = 2 Game.ac_climb.stop() - Game.change_map(load("res://maps/map01.tscn")) + Game.change_map(load(get_owner().filename)) func _on_AnimationPlayer_animation_finished(anim_name):