How To Change Scenes In Godot 4

preview_player
Показать описание
Here's how you can change scenes in Godot 4. Hope this video helps you, please leave a like if it did!

For business inquiries you can contact me here:

Music Used:
Get access to these tracks and a 30 day free trial using my affiliate link:

DISCLAIMER:
some of the above links are affiliate links and I may earn a commission if you purchase them through my links. That being said, these are products / services that I genuinely do use. It's a great way to support me at no extra cost to you :)

tags:
#Godot #devlog
Рекомендации по теме
Комментарии
Автор

Boom, straight to the point got what I came for. Thanks and good day.

GrnMaster
Автор

omg f-ing finally someone who doesnt over explain shit to the point of my brain going numb, thank you for an actually simple and useful explination.

ItsJustWryeth
Автор

I hate hardcoded string paths. Use @export and make your script more reusable and refactoring a breeze.

TayoEXE
Автор

wow i thought they made this more harder but they improve it from instantiating a scene to just calling the file name

thisisgood
Автор

I LOVE YOU!!! Been bangin my head on a problem since a couple of days back and tried all sorts of things and this is all I needed... thank you!

DudeGameOver
Автор

Are you remaking your old videos but for Godot 4?

mkygaming
Автор

What about changing scenes when the player walks through a door or something like that?

productionsinparadise
Автор

When I exported my game, the scene does not change. It's weird because when I test the scene it works perfectly.

PurooRoy
Автор

I do have a question, I'm doing some practices to use it, and in the past this function has worked for me, but I tried to use it for like a menu, and it started to load, load, load, while I was still writing the code, It hasn't stopped, it continues loading, and then it tells me that the program has stopped, like, the game doesn't crashes, it crashes Godot 4 when I try to use this function, and I think 16 gb ram is enough to handle Godot, am I doing something wrong perhaps?

honikal
Автор

This works but doesn't work well if you have other nodes like a GameManager node because this replaces the ENTIRE tree, not just the level tree. So if you have a Game node, and a GameManager node, and you are dynamically trying to swap out levels as children of the Game node, it will get rid of your game and gamemanager nodes!!!

hrothgarnogar
Автор

how do i do this without hardcoding the destination scene

thomasgamer
Автор

But how do you set what coordinates the player is placed at once the scene is changed? I've been scouring for hours now, and still can't find a proper solution for this!! XD I sure hope you know!

acolytebazel
Автор

I have a textured button connected to a ping i'm using for the start button. I want the scale to change when I hover over the textured button. How would I go about doing this. Thanks and I love your vids.

jmanwg
Автор

I can't instantiate the scene, I've done it exactly the way it is in the video and in the godot documentation and even then it doesn't instantiate the scene, I wish I could instantiate a scene every second of the timer but the scene is not instantiated but the seconds pass normally

nionbluh
Автор

Do we have to call queue_free() after that line? Does the original scene still run in the background if we just switch like you did here?

rendayigit
Автор

ok now i can change the scene but how to change the player position

نور-سلص
Автор

Oh wow, this video worked, I know It's definitely not gonna work on future version of Godot, because those bastards keep changing the language of change scene grrrr I've been trying to change scene watching 2 years ago video and it never work so i watch this and finally it worked, Godot stop change the code it makes me impossible to make game

dunkins
Автор

!In Godot4 ! Thanks, I was going crazy thinking that I would have to preload the scenes and that's why it didn't work xd.
and it wasn't that.
The thing about dragging the FileSystem to ") it's great.
Thanks.

pinfloncio