Hello everyone,
I need help creating a system that allows players to save their in-game progress in GDevelop.
My game is still in development. At the moment, the player only has a health system and a double jump ability, but I plan to add many more features in the future. Because of this, I would like to create a save system that is easy to expand later.
Currently, the double jump is controlled by variables that allow the player to perform a second jump while in the air.
The health bar is a sprite that changes its width based on the player’s current health. When the player takes damage, the width of the health bar is reduced.
I want players to be able to save their game while playing and continue exactly where they left off after closing and reopening the game.
I would like the game to save and load:
- Player health
- Player position (X and Y coordinates)
- Current scene or level
- Checkpoints
- Lives
- Score
- Collectibles
- Upgrades and abilities
- Inventory items
- Global variables
- Any other important progress-related data
When the game is loaded, everything should be restored exactly as it was before the game was closed.
My pause menu is located in a separate scene, so I would also like to know the best way to save and load data between different scenes.
I also want the save system to work with future levels that I have not created yet. As I continue developing the game and adding new levels, I would like the system to be able to save and load the player’s progress across all levels without requiring major changes to the save system.
I am looking for a reliable and scalable solution that I can expand as the project grows. Examples, screenshots, tutorials, or step-by-step explanations would be very helpful.
Also, I currently use free sprite and sound assets from itch.io because I am not an artist and I am still learning game development. My main focus right now is programming and creating the game mechanics.
Thank you for your help
