Godot Version
4.2.2
Question
Hello, so I have a project of a Point and click game, I have a sprite that you can click to change levels, this one has a @export field in wich you can indicate the path of the next level, I also have a Fade autoload and a GameManager autoload, this one adds the scene that you indicated to the sprite to the tree and removes the current one when the Fade sends the signal.
The problem is that on each level I have a : “print(levelname)” on them and after switching multiple times back and forth between levels, these prints start to appear more and more in the output, even when you are not on that level, so you can switch back to level1 for the first time and it will print level1, level2 and level1.
This is the GameManager code:
This is the Game scene, where the levels get added:
Here you can download the project: