im severely dum and have no clue what i should be doing to get different levels/scenes to show up and load and i just kinda dont understand how scenes work that much... please forgive me if this is the stupidest question known to man (i really suck at searching the correct things and names so i kinda dont know what to look up to even get the answer i need.)
#need help with scene/level setup
1 messages · Page 1 of 1 (latest)
There's no set workflow.
Since a "level" could be anything from a bunch of Sprites to a whole set of light occluders and collision.
But generally you'd want to respect the Objet Oriented Programming aspect of Godot and encapsulate your stuff.
Make the player its own scene, make enemies their own scene, make the geometry of the level its own scene, etc.
Maybe split that geometry in smaller scenes so you can re use it later.
Then you can have a "main" scene where you add the level and characters by "isntancing" their scenes onto the main one.
By instancing you basically make a copy that updates when the original does.
Don't call yourself stupid. Nobody is born knowing how to make games, we all had to learn it.
There are a couple of ways to change scenes, here are the docs explaining how you might do it. https://docs.godotengine.org/en/stable/tutorials/scripting/change_scenes_manually.html#doc-change-scenes-manually
The simplest option to start is probably just calling get_tree().change_scene_to_file("res://other_scene_file.tscn")
will definitely look into this