How to Create SAVE & LOAD in Godot 4

How to Create SAVE & LOAD in Godot 4

DevWorm

4 месяца назад

7,687 Просмотров

In this video I go over how to implement a saving and loading system step by step in Godot 4. Saving and loading Data in your game is so important and so I explain exactly how it works so you have an understanding of what is going on when adding the system to your own Godot games. We will create a small example world and learn to save the players stats in a resource script, and then learn to reload them when we want to load the data back. Follow along with me and learn all there is to know about saving and loading in Godot 4.

Link to Download Project on Itch.io: https://devworm.itch.io/save-and-loading-tutorial-1-10-2024

Chapters:
0:00 Intro
0:33 Existing Project Info
2:38 Download Save & Load Demo
3:00 Save & Load Tutorial (step by step)
18:54 How Save & Load Works
20:17 Outro

Thank you so much for watching, I really hope this video helped.

if you did enjoy or this video was helpful then all I ask is if you could please subscribe to help out the channel. It means so much and I love your feedback in the comments. I’ll look forward to getting back to you soon! Again thanks so much and I would love to see you again!

These Tutorials take a lot of time to create and I’m working on becoming a better Teacher and learning how to explain Godot things in a better way, if you’d like to support this journey to expand knowledge and help other game dev’s learn to create their own games then please.. Become a Member! It would mean the world and you’ll help me out so much! Thank you!

have a great rest of your day and of course be safe :)

- thanks DevWorm

Тэги:

#godot #godot_4 #saving_and_loading #saving_and_loading_in_godot #saving_data_in_godot #loading_data_in_godot #how_to_create_a_save_and_load_system_in_godot #godot_4_how_to_save_and_load_data #save_and_load_system_in_godot_4 #simple_way_to_save_data_in_godot_4 #how_to_save_my_game_data_in_godot #how_to_save_my_players_data_in_godot #how_to_save_my_players_stats_in_godot #save_and_load_system #save_and_load_with_resources_in_godot #saving_and_loading_games_data_in_godot
Ссылки и html тэги не поддерживаются


Комментарии:

@SollyVlogs
@SollyVlogs - 28.01.2024 07:18

Thank you for the tutorial, super helpful :) !

Ответить
@WunderChilld
@WunderChilld - 23.01.2024 11:54

Thanks for the videos brother, could you bring a video explaining how to enter/use some type of vehicle? whether horse, car, etc.

Ответить
@firewolf11567
@firewolf11567 - 15.01.2024 05:53

I came across your older save and load tutorial through the algorithm, then decided to look at your channel and saw you uploaded this 4 days ago! I recommend adding a pinned comment to your older tutorial linking to this one! Great job, and thank you!

Ответить
@ubaidperfectgamer1562
@ubaidperfectgamer1562 - 14.01.2024 08:02

Hi man very interesting video

Ответить
@adrianvazquez8686
@adrianvazquez8686 - 14.01.2024 04:01

Hey!! Would you make a tutorial on how to make a good menu and UI?? It'll be really helpful!!

Ответить
@Whhatt
@Whhatt - 14.01.2024 03:32

Can you please make a tutorial on deceleration on a 2d platformer
Good vid btw

Ответить
@tonnypedersen5915
@tonnypedersen5915 - 13.01.2024 14:00

using resource files for save game system is a bad idea, they are not safe for use in user land, they are perfect for actual resources in the game and nothing else, for save game use a text based system or a actual database like SQLite or similar, it is also a good idea to encrypt the save file to prevent cheating.

Ответить
@wellplayedggwp295
@wellplayedggwp295 - 12.01.2024 09:18

I make resource of each collebtible items and export them to external resource file, and There is dynamic var inside resource which is amount(default is 0), but whenever i tried to make changes and load it, its always reset to its default var, is it Only saving the reference? Or I should not export each item and define them inside the code instead?

Ответить
@MochiRosu
@MochiRosu - 11.01.2024 16:03

MCSQUIRMY!!

Ответить
@reesekelly2388
@reesekelly2388 - 11.01.2024 06:37

Great video. I really like the idea of using resources to save however there are a lot of people who are saying that if a player downloads files for your game it can breach their security. Is there a work-around for this? I also want to implement multiple saving slots so maybe I should just use JSON... even though it's a lot less intuitive.

Ответить
@MultiLeandrini
@MultiLeandrini - 11.01.2024 05:08

This exactly what I wanted/needed/was looking for. What is this timing? thanks

Ответить
@Kirbo-The-Dirbo
@Kirbo-The-Dirbo - 11.01.2024 04:36

I needed this so bad. Thanks

Ответить
@jasonwilliams8730
@jasonwilliams8730 - 11.01.2024 03:14

Epic tuts!

Ответить
@MrStarlightt
@MrStarlightt - 10.01.2024 21:22

so does this save the game when i close the game, like will the player be in the saved position next time i open the game or is this a save system for a running game only?

Ответить
@fulla1
@fulla1 - 10.01.2024 20:54

This resource file is only temporary, right? I mean if you restart the game it will always start with the same location and health.
In other words: is this adaptable to have e.g. EXP, current level, ... saved permantently and load it on the next start of the game?

Ответить
@planktime
@planktime - 10.01.2024 19:36

HELLO!

Ответить
@HippocritterXD
@HippocritterXD - 10.01.2024 17:06

this is a great video thanks for making it. i was wondering are you gonna continue with the survival game series?

Ответить
@lucasmence
@lucasmence - 10.01.2024 16:36

I don't use godot yet, but I love to watch your videos about game dev, keep it up! Cheers!

Ответить
@jeremiahaemile5441
@jeremiahaemile5441 - 10.01.2024 16:23

thanks man
i will watch it in my a vaction
and ya i am jeremiah but i change my profile picture

Ответить
@tiagogarcia4900
@tiagogarcia4900 - 10.01.2024 16:19

Hmmm I'll be saving this for later

Ответить
@cheapgrams2955
@cheapgrams2955 - 10.01.2024 16:17

Hey Dev! Since I’m early I want to use my newfound comment powers to request an inventory system!! I feel like you could explain one in a simple and replicable way! Much love and thank you for the dope tutorials!

Ответить