How can i Save data

Im trying to make a game that saves your data after you go to a new scene and if you close the game/app the data will save how can i do that

You can use storage actions

this is my first time doing this how would I do it

You can find an explanation here how storage action works.

There are also examples included with GD that demonstrate how to use it.

In order to carry data over from one scene to an other you can also use global variables but if you want to save and load data anyway what I usually do is just save data in to storage at the end of each scene and load data from storage at the beginning of each scene instead of using globals.

1 Like

It might help you

This should help