#issue with using scene tree

5 messages · Page 1 of 1 (latest)

modest juniper
#

Hello sorry am new to game dev and decided to use godot am using c# and currently am working on the main menu. now am trying to switch to another scene when player press setting to go to the setting scene but it give error when i use change_scene_to_packed() that scene tree doesnt include it but the manual said it would work so am kinda confused any help is appreciated

quaint magnet
#

When a node is part of the Scene Tree, the SceneTree singleton can be obtained by calling Node.get_tree().

take a look at how it's implemented in the code here under the "Changing current scene" section:
https://docs.godotengine.org/en/stable/tutorials/scripting/scene_tree.html

modest juniper
#

ah okay thank you i will try that

#

thanks it worked

quaint magnet
#

awesome, good luck with your game! 🙂