Discuss Scratch

blablablahello
Scratcher
1000+ posts

Add cookie (not as silly as it sounds)

So yall know how games like cookie clicker saves your data using cookies (like the browser cookies, not the one you eat), well, why not allow scratch projects to do so?

How this will work:
on projects with the block, you will have a warning similar to the “this project uses the username block”, but instead something like “this project will save cookies to your device”.

we will have 2 blocks:

(cookie)
save cookie as () ::variables

Now, the cookie block willl obviously return the cookie (or nothing, if there is no previously saved cookie), while the save cookie block locates (or creates) a cookie on the device. This cookie will be named specifically to the project (i dunno how exactly lol).

Pros:
1. no need for save codes
2. store more items then cloud variables
3. can be used in ARGs

Cons:
1. could possibly be used to take up RAM (i think its RAM atleast, memory I mean)

There wont be a problem with the cookie being a malicious code or anything (i think), since its not like its gonna be ran as a piece of code anyways

Last edited by blablablahello (Sept. 1, 2022 22:48:44)

musicROCKS013
Scratcher
1000+ posts

Add cookie (not as silly as it sounds)

So, like bridge variables, but unique to each user?
blablablahello
Scratcher
1000+ posts

Add cookie (not as silly as it sounds)

musicROCKS013 wrote:

So, like bridge variables, but unique to each user?
no, its like cookies, where a piece of data is stored to your computer, and can be accessed by the same website (or in this case, the same scratch project), again.

I wrote this suggestion with limited knowlegde of cookies (since I also happen to be in a room where people are taking math tests and it would be awkward to search up what cookies are and how they function).

I mean it would be cool to also be able to transfer to other projects (and it would be very much possible, sorta, although it would be WAY more complicated), but I feel like thats unnesecary

Last edited by blablablahello (Sept. 1, 2022 22:56:06)

musicROCKS013
Scratcher
1000+ posts

Add cookie (not as silly as it sounds)

Oh! You mean Cached Variables?

Or do you mean where it is saved on the cloud?

Last edited by musicROCKS013 (Sept. 1, 2022 23:09:55)

pizzafox20109
Scratcher
100+ posts

Add cookie (not as silly as it sounds)

This sounds cool, a suggestion from me though, is instead of having one cookie, you could have multiple “cookie variables”, which one changed inside of the project at all will save to your browser as a cookie. This way you could easily have multiple cookies.

Support!
2SHSredstone
Scratcher
39 posts

Add cookie (not as silly as it sounds)

Support. This would solve many problems. Such as trying to save a player's town in a town builder or customization options
solomonw2440
Scratcher
1000+ posts

Add cookie (not as silly as it sounds)

Support, for reasons already stated above such as

2SHSredstone wrote:

Support. This would solve many problems. Such as trying to save a player's town in a town builder or customization options
Supernoodles99
Scratcher
100+ posts

Add cookie (not as silly as it sounds)

Support. This is a pretty good idea!
I also think you should be able to change a cookie's value without saving it to your computer. like this:
set cookie to [value] :: variables
reallysoftuser
Scratcher
1000+ posts

Add cookie (not as silly as it sounds)

musicROCKS013 wrote:

Oh! You mean Cached Variables?

Or do you mean where it is saved on the cloud?
I believe this is the same suggestion as the first one, yes.

This seems to be a duplicate, so I reported the post. Make sure to check the Suggestions Directory before posting, this may be closed by the Scratch Team soon.
blablablahello
Scratcher
1000+ posts

Add cookie (not as silly as it sounds)

reallysoftuser wrote:

musicROCKS013 wrote:

Oh! You mean Cached Variables?

Or do you mean where it is saved on the cloud?
I believe this is the same suggestion as the first one, yes.

This seems to be a duplicate, so I reported the post. Make sure to check the Suggestions Directory before posting, this may be closed by the Scratch Team soon.
ye no dis is definitly a duplicate lol
srry didn't check (I THINK I was taking a test when I made this suggestion lol)

Powered by DjangoBB