+1 vote

I was trying to make portals between scenes without needing to make a separate Area2D for every scene. I am getting an error message:
:E 0:00:03.568 load: Resource file not found: res://.
<C++ Error> Condition "!file
check->fileexists(ppath)" is true. Returned: RES()
<C++ Source> core/io/resourceloader.cpp:283 @ _load()
Area2D.gd:12 @ _physics

it's weird because I realized the script works perfectly fine in the second scene.
On the other hand on the first scene, I get the variable isn't created and I get the error message.

here's the code:

extends Area2D

var next_world

export(String, FILE,"*.tscn") var next_world

func physicsprocess(delta):
var bodies = getoverlappingbodies()
for body in bodies:
if body.name == "gamer":

Godot version 3.3
in Engine by (20 points)
reshown by

1 Answer

–2 votes

File path strings aRe CaSe SENSITIVE. Make sure your paTh/TO/FileS strings match exactly the directory and file before exporting.

Your game will play in the editor perfectly fine if the strings don't match the case of the directory structure + file name exactly.

by (3,870 points)

The problem was with the main scene not being set to what I thought it was. Yeah, really stupid mistake.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.