Discuss Scratch

GamerGoat
New Scratcher
4 posts

Saving Game Progress

Hey, I'm trying to make a virtual pet game that is going to have a ‘save’ and ‘load’ button. I would like it if the background, costume, variables, lists etc could be both saved and loaded. If it isn't possible to save and load a background or costume then I could do something like this:

ifbackground=1thenswitchbackdroptodefault

Anyways, I have looked at the different ways to make a project save data, however I'm pretty confused and I'm not too sure which way is best for this project, or how to put it into the project.

I probably won't upload the game to this website. Instead I plan on either making it downloadable or, most likely, putting it on my own/another website.

Thanks for reading, and I hope you receive some help soon

Last edited by GamerGoat (June 1, 2016 18:17:01)

X-15
Scratcher
51 posts

Saving Game Progress

You need to use cloud variables (you need to be a scratcher though); just save back ground as an number on a cloud variable

Last edited by X-15 (June 1, 2016 18:37:03)

TenHourGuy
New Scratcher
11 posts

Saving Game Progress

In the top-left of the project editor, go to File > Download to your computer. Then, once it's in your Downloads folder, you should be able to extract it using just about any archive manager. If you're using Windows and the default stuff, you may have to change the extension from .sb2 to .zip.

Unless this isn't what you're meaning? Because you mention game progress in the title but stuff like costumes and such in your actual post, which would be two completely different things.
TenHourGuy
New Scratcher
11 posts

Saving Game Progress

X-15 wrote:

You need to use cloud variables (you need to be a scratcher though); just save back ground as an number on a cloud variable

If they only need to store which background should be loaded etc., then yeah, that would work.

Only issue is, anyone else playing the game could mess up the cloud variables unless another layer of protection was implemented. Even with a layer of protection in the code though, I've heard that the cloud variables aren't very secure anyway, and there's no way to store data only accessible to certain accounts.
GamerGoat
New Scratcher
4 posts

Saving Game Progress

Thanks for both of your replies

X-15 wrote:

You need to use cloud variables (you need to be a scratcher though); just save back ground as an number on a cloud variable

I'm guessing by scratcher you mean I need to post it on the site to use cloud
I don't plan on putting the game on here unless I need suggestions or people to test it so I don't think that will work, or not as easily anyway. I'm also new to cloud data and I'm confused when it comes to using it.

TenHourGuy wrote:

In the top-left of the project editor, go to File > Download to your computer. Then, once it's in your Downloads folder, you should be able to extract it using just about any archive manager. If you're using Windows and the default stuff, you may have to change the extension from .sb2 to .zip.

Unless this isn't what you're meaning? Because you mention game progress in the title but stuff like costumes and such in your actual post, which would be two completely different things.

I think I know, more or less, how to put the project onto a website, or how to download it, but thanks anyway.
What I meant in the post is that I would like progress, such as the costumes of the sprites, different variables, lists and backgrounds, to be loaded.

I mentioned where I would like to post the project so people wouldn't suggest ways that would only work if the project is posted on the scratch site.
I need suggestions on how to make a working save/load button/feature that will work with my plans for this project
ignas04
Scratcher
500+ posts

Saving Game Progress

Look… Using a save and load button method is bad - they can cheat without even editing the code. I recommend using cloud lists: https://scratch.mit.edu/projects/22003344/ .
  1. Put the cloud list in your backpack
    Set up some things: Reset button (resets your status) and setup what is in there that you've been told to setup
    I recommend making an auto-save - so that people wouldn't have to press buttons and all that stuff.
I hope I've helped!
GamerGoat
New Scratcher
4 posts

Saving Game Progress

ignas04 wrote:

Look… Using a save and load button method is bad - they can cheat without even editing the code. I recommend using cloud lists: https://scratch.mit.edu/projects/22003344/ .
  1. Put the cloud list in your backpack
    Set up some things: Reset button (resets your status) and setup what is in there that you've been told to setup
    I recommend making an auto-save - so that people wouldn't have to press buttons and all that stuff.
I hope I've helped!

Ok thanks, I'm checking it out right now. Do you know if this method can be used outside of the scratch website?
Also, how come people can easily cheat using a load and save button? I'm just curious so I can see if I'm doing anything else wrong
ignas04
Scratcher
500+ posts

Saving Game Progress

GamerGoat wrote:

ignas04 wrote:

Look… Using a save and load button method is bad - they can cheat without even editing the code. I recommend using cloud lists: https://scratch.mit.edu/projects/22003344/ .
  1. Put the cloud list in your backpack
    Set up some things: Reset button (resets your status) and setup what is in there that you've been told to setup
    I recommend making an auto-save - so that people wouldn't have to press buttons and all that stuff.
I hope I've helped!

Ok thanks, I'm checking it out right now. Do you know if this method can be used outside of the scratch website?
Also, how come people can easily cheat using a load and save button? I'm just curious so I can see if I'm doing anything else wrong
Sorry but I forgot to check your status - only scratchers can use cloud variables.

This method CANNOT be used outside of the scratch website, because cloud variables connect to scratch.mit.edu cloud data database and you are not on the website - you're on the program “Scratch 2”.

Unless you want to do a save and load button with cloud variables (lists!!!!) - then you can't cheat but if your load button includes: “Type in your progress, so that the game could load it up” - they could type in any score. When you get access to cloud variables (scratcher status) definitely use that cloud list that I've mentioned in my previous post. And do it that it could save and load automatically.
TenHourGuy
New Scratcher
11 posts

Saving Game Progress

ignas04 wrote:

Sorry but I forgot to check your status - only scratchers can use cloud variables.

This method CANNOT be used outside of the scratch website, because cloud variables connect to scratch.mit.edu cloud data database and you are not on the website - you're on the program “Scratch 2”.

Unless you want to do a save and load button with cloud variables (lists!!!!) - then you can't cheat but if your load button includes: “Type in your progress, so that the game could load it up” - they could type in any score. When you get access to cloud variables (scratcher status) definitely use that cloud list that I've mentioned in my previous post. And do it that it could save and load automatically.

Yeah, you need to be a Scratcher which takes around a month of activity to achieve, from what I've heard.

Assuming they put it on another website by embedding the Scratch project (which would require some HTML knowledge and may be against their T&Cs anyway), the cloud variables should be fine.
ignas04
Scratcher
500+ posts

Saving Game Progress

TenHourGuy wrote:

ignas04 wrote:

Sorry but I forgot to check your status - only scratchers can use cloud variables.

This method CANNOT be used outside of the scratch website, because cloud variables connect to scratch.mit.edu cloud data database and you are not on the website - you're on the program “Scratch 2”.

Unless you want to do a save and load button with cloud variables (lists!!!!) - then you can't cheat but if your load button includes: “Type in your progress, so that the game could load it up” - they could type in any score. When you get access to cloud variables (scratcher status) definitely use that cloud list that I've mentioned in my previous post. And do it that it could save and load automatically.

Yeah, you need to be a Scratcher which takes around a month of activity to achieve, from what I've heard.

Assuming they put it on another website by embedding the Scratch project (which would require some HTML knowledge and may be against their T&Cs anyway), the cloud variables should be fine.
Thanks!
JAtacoMonster
New Scratcher
1 post

Saving Game Progress

How can I make a game savable? I am making a game with some of my friends and don't know how. Thanks
deck26
Scratcher
1000+ posts

Saving Game Progress

JAtacoMonster wrote:

How can I make a game savable? I am making a game with some of my friends and don't know how. Thanks
Please start your own topic.

However you're currently still New to Scratch so can't use cloud variables which only leaves the option of creating a save code which can be cut and saved for reentry later.
GingerSam04
Scratcher
2 posts

Saving Game Progress

There needs to be a much more simpler way of saving game data, this website is mainly for kids to get into coding and I'm pulling my hair out even when watching videos on how to do it!
Arcticstar2
Scratcher
3 posts

Saving Game Progress

GingerSam04 wrote:

There needs to be a much more simpler way of saving game data, this website is mainly for kids to get into coding and I'm pulling my hair out even when watching videos on how to do it!
Exactly, I'm 10 and I can't figure out how to! It's soooo frustrating!
5_star_animations-XD
Scratcher
2 posts

Saving Game Progress

Thanks so much for helping me guys
deck26
Scratcher
1000+ posts

Saving Game Progress

5_star_animations-XD wrote:

Thanks so much for helping me guys
Please don't necropost just to thank people for posts from the past.
Crazyllama2018
Scratcher
1 post

Saving Game Progress

I still can't figure out how to do it
deck26
Scratcher
1000+ posts

Saving Game Progress

Crazyllama2018 wrote:

I still can't figure out how to do it
Please create your own topic rather than necroposting - many people won't read as far as your post. Give details of what you're trying to do and share what you have so far.
MCBRex
Scratcher
34 posts

Saving Game Progress

I don't know how to do this either! I am also trying to make a virtual pet game, and I am very confused as to how to save specific user's progress on the game. Anybody have a more direct response?
Kraken_Games
Scratcher
100+ posts

Saving Game Progress

MCBRex wrote:

I don't know how to do this either! I am also trying to make a virtual pet game, and I am very confused as to how to save specific user's progress on the game. Anybody have a more direct response?

deck26 wrote:

Crazyllama2018 wrote:

I still can't figure out how to do it
Please create your own topic rather than necroposting - many people won't read as far as your post. Give details of what you're trying to do and share what you have so far.

Powered by DjangoBB