How do I change "scenes"?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cybercat

Hello people. I’m totaly new to Godot engine and looking forward to learn it. I’m trying to make a game like this: Strive for Power by Strive4Power

But I’m stuck at the very beginning. How do I change between “scenes”. For example visiting a new place, getting into character details screen, checking your party etc. etc.

Do I make seperate Controls for that? Or make one ColorRect for each screen then put them in different places in my space? That’s a fundemental problem for me to solve. I need your help in advance.

because your new to Godot i would not recommend that you try to replicate that game, i would start something small and gradually build up to it

lewis glasgow | 2021-08-11 17:47

That’s what I’m trying to do but can’t properly add two seperate scenes/colorrects.

cybercat | 2021-08-11 18:36

Here:
Using SceneTree — Godot Engine (stable) documentation in English
And here:
Change scenes manually — Godot Engine (stable) documentation in English
Will show you the two main ways of changing scenes. If that’s not what you were expecting, then you’re actually looking for something else.

From the sounds of it you just want to immediately start creating and try and learn as you go. That’s totally fine! But! You will probably find that you’ll continuously hit roadblocks one after the other — endlessly.

The best way to get through that is to figure them out for yourself. Google is your friend! What you go through the process of typing here, just put it all into an internet search instead. Follow quick YouTube tutorials that you think are tangentially-relevant.

And although it may seem super-mundane, follow the Docs tutorials!
https://docs.godotengine.org/en/stable/getting_started/step_by_step/your_first_game.html

And that whole site!
Godot Docs – 4.1 branch — Godot Engine (stable) documentation in English
And here:
https://kidscancode.org/godot_recipes/
They’re all here to help you!

Try checking them out, and, if you can’t at all seem to find what you’re looking for, instead of going through all the trouble of using this site or Reddit to solve your confusion (several hours or days later), instead pose your question to the internet: “how to change scenes godot” and find your way back here!

Good luck!

Yuminous | 2021-08-12 11:20

Thank you so much for this great comment. I think the answer lies between those links. I’ll check them once I get back from vacation!

cybercat | 2021-08-12 11:45

:bust_in_silhouette: Reply From: lewis glasgow
get_tree().change_scene("path of scene")

Okay but how do I add more “scenes” I can only add one ColorRect…

cybercat | 2021-08-11 18:24

ColorRect is not a scene but a node

lewis glasgow | 2021-08-11 20:53