Discuss Scratch
- iTweak0r
-
100+ posts
Save Data in Scratch
Supporters
iTweak0r
NoxSpooth
Mimiandwormsfan123
heatguts
SuperJedi224
goldfish678
meowflash
002001153
A-no-meep
ScratchJahd2011
Some people have said that it is like blocking downloads. But it is not hiding code. It's just providing a way to make games with save files.
I have a new idea: Save Data. On Scratch, it's hard to make long games because when someone comes back they have to play it all over again. You could make persistent storage with Cloud Variables/Lists, but what if someone is offline? Below is a way save data could work. There would be some blocks to do it. The first is:
save { something } into tag { tag }
The first part is easy. It lets you say what you want to save. But what's the “tag” part? It's kind of a “save variable,” a space where a saved value goes. If a tag does not exist, it creates one.
Where does the data go? The Scratch server. Server-wise, data would map from a username to a tag to a value to a project. Example format:
iTweak0r>Highscore>25>Flyer 4.5
iTweak0r>Extras Unlocked>true>Flyer 4.5
If someone is a guest, this would show up:
You need an account to save data.
Clicking “account” would show the login/signup page.
Edit: Another idea is to use cookies or Local Shared Objects (flash) for guests
We have covered “save,” but we need loading too! Well, loading would come as a Reporter block.
( load from tag { tag } )
Seems straightforward. You could use a variable block like:
set { highscore v } to ( load from tag { highscore } ). There's also some more blocks I would like to mention.
remove tag
< tag { tag } exists? >
Removing would, well, remove the tag from the server. There's also the exists? block that tests if a tag exists or not. An example of using it would be showing an intro screen if there's no save data.
if < tag { current level } exists? >
broadcast { play v }
else
broadcast { intro v } and wait
broadcast { play v }
That's all there is to save data. It could be in the Data category.
Do you like this idea, or do you have any more ideas to add? Just tell me.
Last edited by iTweak0r (March 8, 2014 16:41:09)
- NoxSpooth
-
1000+ posts
Save Data in Scratch
Nice idea, but if people need to have an account in order to save data, some users could use this to force guests to make an account.
- iTweak0r
-
100+ posts
Save Data in Scratch
force guests to make an account.Nice idea, but if people need to have an account in order to save data, some users could use this to
The game continues normally (without save data) if someone is a guest, so it does not force someone to make an account.
Another idea is to use cookies instead for guests. Except if someone cleared their browser data, their save file would be gone.
- NoxSpooth
-
1000+ posts
Save Data in Scratch
They could program it to only allow people who are logged in.force guests to make an account.Nice idea, but if people need to have an account in order to save data, some users could use this to
The game continues normally (without save data) if someone is a guest, so it does not force someone to make an account.
Another idea is to use cookies instead for guests. Except if someone cleared their browser data, their save file would be gone.
But yeah, using cookies is a good idea as well.
- iTweak0r
-
100+ posts
Save Data in Scratch
You can already force users to log in
if < (username) = {} >
stop all
if < (username) = {} >
stop all
- iTweak0r
-
100+ posts
Save Data in Scratch
It's too time-consuming, and if someone made a word processor program another user could see EVERYONE'S files Doesn't cloud variables do the job?
- NoxSpooth
-
1000+ posts
Save Data in Scratch
One of the main points of Scratch is sharing. Not just the project, but also its code. I understand your point, but I personally think that hiding data from other people isn‘t a good thing to do.It's too time-consuming, and if someone made a word processor program another user could see EVERYONE'S files Doesn't cloud variables do the job?
- iTweak0r
-
100+ posts
Save Data in Scratch
One of the main points of Scratch is sharing. Not just the project, but also its code. I understand your point, but I personally think that hiding data from other people isn‘t a good thing to do.It's too time-consuming, and if someone made a word processor program another user could see EVERYONE'S files Doesn't cloud variables do the job?
But this is save data not cloud data it's supposed to be on only one person's computer/account/phone/whatever
- NoxSpooth
-
1000+ posts
Save Data in Scratch
One of the main points of Scratch is sharing. Not just the project, but also its code. I understand your point, but I personally think that hiding data from other people isn‘t a good thing to do.It's too time-consuming, and if someone made a word processor program another user could see EVERYONE'S files Doesn't cloud variables do the job?
But this is save data not cloud data it's supposed to be on only one person's computer/account/phone/whatever
Please explain the difference between both of them.
If it‘s private data, then I don‘t support.
- Mimiandwormsfan123
-
59 posts
Save Data in Scratch
This is great for OS simulators! STRONG SUPPORT
- heatguts
-
100+ posts
Save Data in Scratch
i like this idea. the idea of sharing in scratch is strong, but you will be sharing the code. this just simplifies the cloud variable thing. keeps save data from being easily exploited and skipping to the end of a game or unlocking all the unlockables.
- ImagineIt
-
1000+ posts
Save Data in Scratch
I think he's saying: The scripts will be EXACTLY the same. It's just the fact that one PERSON gets to save data locally, and nobody can see that. It's sort of like how nobody can see your account.One of the main points of Scratch is sharing. Not just the project, but also its code. I understand your point, but I personally think that hiding data from other people isn‘t a good thing to do.It's too time-consuming, and if someone made a word processor program another user could see EVERYONE'S files Doesn't cloud variables do the job?
But this is save data not cloud data it's supposed to be on only one person's computer/account/phone/whatever
Please explain the difference between both of them.
If it‘s private data, then I don‘t support.
- Rub0Gameton
-
100+ posts
Save Data in Scratch
Won't this be already possible when cloud lists are released? Also, I'd rather have data stored on the cloud than locally. If it were locally, it should be through Local Shared Objects (what Flash uses to store stuff in yor computer) and not through cookies as they are less likely to be reset.
- heatguts
-
100+ posts
Save Data in Scratch
think of it like this. the downloadable version of 2.0 is out, and you have this GIANT game, with 10 levels and each level takes 5 or so minutes to complete. you are working on the final level. but since you are using 2.0 without internet access, you can't save the game. all your progress is only accessible via the internet. so those of us who don't have an internet connection can't access unlockables and stuff like that without hacking the game or connecting to the internet.
- mitchboy
-
1000+ posts
Save Data in Scratch
You need Internet access to go on Scratch and download a game. Why would you even want to play the downloaded version if you can play the online version? And in the downloaded version, it would be so easy to get back to where you were. think of it like this. the downloadable version of 2.0 is out, and you have this GIANT game, with 10 levels and each level takes 5 or so minutes to complete. you are working on the final level. but since you are using 2.0 without internet access, you can't save the game. all your progress is only accessible via the internet. so those of us who don't have an internet connection can't access unlockables and stuff like that without hacking the game or connecting to the internet.
- heatguts
-
100+ posts
Save Data in Scratch
so easy to get back where you were WITH SAVED DATA. without you have to use said method of hacking your own game. and maybe you have internet access sometimes but not always, or your speed isn't very fast and you would rather spend an hour downloading a game so you could play it offline then waiting an hour every time you want to have a 10-minute playing session.You need Internet access to go on Scratch and download a game. Why would you even want to play the downloaded version if you can play the online version? And in the downloaded version, it would be so easy to get back to where you were. think of it like this. the downloadable version of 2.0 is out, and you have this GIANT game, with 10 levels and each level takes 5 or so minutes to complete. you are working on the final level. but since you are using 2.0 without internet access, you can't save the game. all your progress is only accessible via the internet. so those of us who don't have an internet connection can't access unlockables and stuff like that without hacking the game or connecting to the internet.
- iTweak0r
-
100+ posts
Save Data in Scratch
Local Shared Objects (what Flash uses to store stuff in yor computer)If it were locally, it should be through
good idea!
(I know this is an old post but I still want to answer)
Last edited by iTweak0r (July 1, 2013 18:42:15)
- SuperJedi224
-
100+ posts
Save Data in Scratch
force guests to make an account.There are already ways to do this Nice idea, but if people need to have an account in order to save data, some users could use this to
Anyway, I support
Last edited by SuperJedi224 (July 2, 2013 14:52:11)