Hello guys Im an absolute beginner making his first game in Godot. Im making a platformer akin to the style of Super Mario Bros, with an object at the end of the level to take you to the next level.
I had this script found online and it worked for between world.tscn and world2.tscn but now that i added World3.tscn it wont work, instead of taking me there when i complete world 2 it takes me back to world 1. Here is the current code (job is the level changing object):
export(String, FILE, "*.tscn") var next_world
var bodies = getoverlappingbodies()
for body in bodies:
if body.name == "Player":
immense thanks to anyone who could help me with this!!