Godot 4 Save and Load Tutorial using the new FileAccess class
Описание
Using Godot 4.10 beta
The code used in the video: https://github.com/patllamas/Save-Tutorial/blob/main/Main%20Menu/Menu.gd
Open Source Godot Engine: https://godotengine.org/
Official documentation: https://docs.godotengine.org/en/latest/classes/class_fileaccess.html
I learned the save/load function for my Vampire Survivors clone (only works on Chrome or Edge): https://starcerealgames.itch.io/goblin-runner-1077
Special thanks to @BrannoDev for his Vampire Survivors Clone tutorial series https://www.youtube.com/playlist?list=PLtosjGHWDab682nfZ1f6JSQ1cjap7Ieeb
00:00 Introduction
00:31 Explaining current code
1:20 Step 1 Create a save file path in %appdata% folder
1:53 Step 2 Create a save_file function
2:47 Step 3 create a dictionary to hold your variables
4:02 Step 4 Create a load_file function
6:36 Step 5 Hook up the save_file and load_file functions
7:00 Testing the save and load functions
Рекомендуемые видео



















