Discuss Scratch

Prince_Toast
Scratcher
96 posts

Save Files... Out Of Scratch Applications... Here We Go Again

I'm making quite a large action adventure game, and I'm going to package it to a .exe when I'm done. But how could I implement a save button so that it saves your progress, even if you shut the window? I'm not sure if there is a solution, but I request help.
mybearworld
Scratcher
1000+ posts

Save Files... Out Of Scratch Applications... Here We Go Again

It just doesn't work this way - yes, that's possible, but not by simply converting sb3 > exe.
Chiroyce
Scratcher
1000+ posts

Save Files... Out Of Scratch Applications... Here We Go Again

If you want it to save progress, you cannot make such an app in vanilla Scratch. You either have to modify Scratch to implement this features (requires technical knowledge of JavaScript and NodeJS APIs) or you have to make the game in an entirely different software (Unity, Unreal, or even vanilla HTML/CSS/JS with Electron)
gdpr0d1c374ad4b131d0c9c84821
Scratcher
89 posts

Save Files... Out Of Scratch Applications... Here We Go Again

Prince_Toast wrote:

I'm making quite a large action adventure game, and I'm going to package it to a .exe when I'm done. But how could I implement a save button so that it saves your progress, even if you shut the window? I'm not sure if there is a solution, but I request help.
https://scratch.mit.edu/projects/698282470/
kccuber
Scratcher
1000+ posts

Save Files... Out Of Scratch Applications... Here We Go Again

You can make a cloud variable that holds the user's progress, and then in the TurboWarp packager settings, set that cloud variable to local storage. This will allow the project to store the user's progress.
Prince_Toast
Scratcher
96 posts

Save Files... Out Of Scratch Applications... Here We Go Again

Thank you

Powered by DjangoBB