So this is the code for the portal that I did to to get the player from world1 to world2 to world_n.
export(String, FILE, "*.tscn") var world_next
What happens in the debug window each time the player enters the collision box of the portal:
E 0:00:11.567 load: Resource file not found: res://.
<C++ Error> Condition "!filecheck->fileexists(ppath)" is true. Returned: RES()
<C++ Source> core/io/resourceloader.cpp:282 @ _load()
worldnext.gd:7 @ onworldnextbody_entered()
I just get this everytime I get in the portal. The thing is I tried to do this without the "export" command, a different script for each level, and it works.
Please help. Sorry if it's dumb but I just don't get it.