New stuff isn't loading into this level

Godot Version

4.6.2

Question

So I’m not sure whats going on, but all the nodes on this scene are yellow text, and when I add a new node (which shows up in white text) whatever that new node is doesn’t load into the scene at all. There doesn’t seem to be any errors in the code so the only thing I think it could be is the yellow vs white nodes, but I don’t know how to fix it.

here’s what the scene tree looks like:

The yellow node names mean that those nodes are from an instantiated scene. If you right-click the World2 node, you should see that “Editable Children” is enabled.

Can you clarify what you mean by this? Do you mean that you’re not seeing the node at run-time?

its like it won’t load into the scene at all. Sometimes it works by itself but when coming from another scene all the things in white do not load into the scene at all.

1 Like

That would indicate that you are loading the scene you are inheriting from, instead of the scene you think you are loading.

this is the code I use to transition between the scenes, is there maybe a problem in here that could be causing it?

	if entered == true:
		var current_scene_file = get_tree().current_scene.scene_file_path
		var next_level_number = current_scene_file.to_int() + 1
		var next_level_path = "res://levels/world_" + str(next_level_number) + ".tscn"
		get_tree().change_scene_to_file(next_level_path)

Possibly. Try this:

	if entered == true:
		var current_scene_file = get_tree().current_scene.scene_file_path
		print("String: %s, int: %s" % [current_scene_file, current_scene_file.to_int()])
		var next_level_number = current_scene_file.to_int() + 1
		var next_level_path = "res://levels/world_" + str(next_level_number) + ".tscn"
		print("Next Level Path: %s" % next_level_path)
		get_tree().change_scene_to_file(next_level_path)

See what out put you get.