Godot Tutorial - Save and Load your Game in a Simple Way

preview_player
Показать описание
Welcome to Delta12, my name is Michael and I am a pixel art game lover.
Well, in this video I will show you how to create a simple Menu with four buttons and then you will learn how to Save and Load your Game in a simple way in godot Engine.
Basically we are going to save all the important variables for our game in a JSON file and then to load the game we will make the code read this file and change the values ​​of the variables to the saved values.
That way we will have a simple system where there will be only one save file, but I believe you can adapt it to your project if necessary.
Well, this is not the only way to save and load your game in godot, but it was the easiest way I found when I was developing my project.
I hope it is of some use to you!
Well, I know the video content is on Hard level, so if you have any questions, write them in the comments and I'll try to help you.
Thank you very much to the 323 subscribers and if you are not yet a subscriber to the channel, consider subscribing so you don't miss the next videos.
Leave a like to help the channel reach more people.
And suggest in the comments the theme of the next video.
_______________________________________________________________________________________________
____________________________________________________________________________________________

#godot #godottutorial #gamedevelopment
Рекомендации по теме
Комментарии
Автор

Thank you thank you thank you thank you

aneerudh
Автор

Just what I was thinking about 🤣 you came in clutch man! Thanks a lot! I appreciate your videos

spiciestboii
Автор

What are you gonna do next? I would suggest if your making the inventory, like taking a lot of videos so that we understand everything. I would love to see weapons and enemies which is my main priority! Thank you so much btw. Take care!

aneerudh
Автор

The content that you teach in your videos is awesome ! Thank you very much for your channel!

programmingsabrina
Автор

thanks for the tutorial, one critisim tho, Uh now what do I do?, I'm sitting with esentially useless code, I can boot up my game, press save, and load, nothings gunna happen

I still need to know
1 how to get the current values of the player characters variables stored in that of the array
2 how to set the player characters equal to that wich is in the array when loading the save
3 how to store world position as a var
4 how to give the player access to the saved data when loading it, since if you have multiple saves you'll need to pick a save to load.

is there a part 2 to this or am I missing something.
lots of concepts have been made clear to be but I cannot praise you like everyone else intill the information is applicable and implementable

I have some global variables I tried inserting into the array, when I spress save, do something to change the variable, and then load, it doesnt load anything
so kinda useless, this is why I am saying theres missing information

samuelhugo
Автор

Cara, parabéns pelos tutoriais!
Aprendi muito. obrigado!

jf
Автор

Thanks you very much
Please make more detailed content like this
It helps a lot

ankan
Автор

great tutorial! i really like how you explain, keep it up!

deepdawndevs
Автор

hi, i love your videos but what happend when do the others PARTS come out ?

drawwithme
Автор

Can you make a tutorial on how to do game over?

lastprogamer
Автор

hello, i would like to ask because the "ui_menu" button, when it was pressed for the first time it opens but when i want to close the menu it doesn't want to close because the first line of "ui_menu" button will always be read first by the program, any solution or remedy that you can give please?

hatchu
Автор

Hello sir, my savegame.json file doesn't seems. How can i fix this problem i try every method for save and load in godot but I can't fix that.

goldengoblinX
Автор

please, im begging for the love of god, ive searched so much, how can i do this in Godot 4?

frenchiestfry
Автор

This was very helpful but I have an off topic questions. Is there a way you can share your godot game with somone so they can edit it? Like a Google doc?

PLAYZDAYZyt
Автор

do you still reply? what if my player has a camera? how do i make it stay in the center of the screen? thank you very much!

Edit: I have figured it out, for anyone facing the same issue, just make a canvas layer before you make the menu ColorRect

jdanjdan