- Edited
@TwistedTwigleg said: Does the error display which line the
Resource file not found: res://
is on or being triggered by?My guess would be the
change_scene
function call on `` is causing the issue. Maybe addprint(scene)
after line12
in the first code snippet and see what it shows? Maybe it is not loading it currently. I might also suggest addingprint(scene)
between lines 2 and 3 in the second code snippet, just to make sure everything is as expected.Also, what is stored in
scene
when you save it to a file? Thechange_scene
function takes a string that is the path to the scene file you want to load. If you pass a non-string to it, that could also be contributing to the issue.(Small note: I fixed code format. You can just post the code with a single tab indent or surround it with three
~
on either side)
The error is on the continue button at "get_tree().change_scene(scene)", ive been trying to print the scene to see if is all alright but it says null over and over
edit: nvm i got it working, i put "scene = get_tree().current_scene.filename" in the level transition scene and it worked : ) thanks