Discuss Scratch

GreatGamingCats
Scratcher
12 posts

How do you save variables per user?

How do you save variables for each user like saving games. And how do you save some non-variable stuff, like if something is visible or not, or if something is at this coordinate, etc.
MacaylaMarvelous81
Scratcher
42 posts

How do you save variables per user?

You can create some variables for the non-variable stuff like
whenclickedforeversetvisibilitytocostume# One costume is empty for the hidden partsetxtoxpositionsetytoypositionsetsizesavetosizeifscore>scorethenset☁ scoretoscoresetsavecodetojoinvisibilityjoinxjoinysizesavedeleteallofsaveaddCopy code below. This is your save code!tosaveaddsavecodetosavewhenthisspriteclickedaskcode?andwaitsetvisibilitytoletter1ofanswersetxtoletter2ofanswersetytoletter3ofanswersetsizesavetojoin4answer
andyhanwu
Scratcher
76 posts

How do you save variables per user?

you can't save for the user.
use save codes / save strings.
they store all the variables in code and then you need a script to decode it.
footsocktoe
Scratcher
1000+ posts

How do you save variables per user?

GreatGamingCats wrote:

How do you save variables for each user like saving games. And how do you save some non-variable stuff, like if something is visible or not, or if something is at this coordinate, etc.

Find a game that does it and use “look inside” to see how to do it.
GreatGamingCats
Scratcher
12 posts

How do you save variables per user?

Thanks guys, but I've seen people like griffpatch not use savecodes and save their game. I just want to know if there is an easy way to save those non-variables as I dont want to make a lot of variables for every sprite i have.
footsocktoe
Scratcher
1000+ posts

How do you save variables per user?

GreatGamingCats wrote:

Thanks guys, but I've seen people like griffpatch not use savecodes and save their game. I just want to know if there is an easy way to save those non-variables as I dont want to make a lot of variables for every sprite i have.

Are you asking if there is a way to save variables without making variables?

What do you mean by “non-variables”? What is a non-variable?
GreatGamingCats
Scratcher
12 posts

How do you save variables per user?

footsocktoe wrote:

GreatGamingCats wrote:

Thanks guys, but I've seen people like griffpatch not use savecodes and save their game. I just want to know if there is an easy way to save those non-variables as I dont want to make a lot of variables for every sprite i have.

Are you asking if there is a way to save variables without making variables?

What do you mean by “non-variables”? What is a non-variable?
like if something is visible or not, or if something is at this coordinate, etc
is there a quick way to save them using idk, lists or smthing? cos im not making like 5 variables for every sprite i have
footsocktoe
Scratcher
1000+ posts

How do you save variables per user?

GreatGamingCats wrote:

footsocktoe wrote:

GreatGamingCats wrote:

Thanks guys, but I've seen people like griffpatch not use savecodes and save their game. I just want to know if there is an easy way to save those non-variables as I dont want to make a lot of variables for every sprite i have.

Are you asking if there is a way to save variables without making variables?

What do you mean by “non-variables”? What is a non-variable?
like if something is visible or not, or if something is at this coordinate, etc
is there a quick way to save them using idk, lists or smthing? cos im not making like 5 variables for every sprite i have

Yes, you could use a list. Each item in the list could be one quality that you want to save.

I think the easiest way to save is like games did in the old days… have save points where you can save. Then all you need to save is which save point it is.
GreatGamingCats
Scratcher
12 posts

How do you save variables per user?

footsocktoe wrote:

GreatGamingCats wrote:

footsocktoe wrote:

GreatGamingCats wrote:

Thanks guys, but I've seen people like griffpatch not use savecodes and save their game. I just want to know if there is an easy way to save those non-variables as I dont want to make a lot of variables for every sprite i have.

Are you asking if there is a way to save variables without making variables?

What do you mean by “non-variables”? What is a non-variable?
like if something is visible or not, or if something is at this coordinate, etc
is there a quick way to save them using idk, lists or smthing? cos im not making like 5 variables for every sprite i have

Yes, you could use a list. Each item in the list could be one quality that you want to save.

I think the easiest way to save is like games did in the old days… have save points where you can save. Then all you need to save is which save point it is.
I could use a list, but how do I make it so that I will load everything and that it will load everything per player - so if someone played till this point and he logs out he will be at the start again because he isnt in his account but if he is it will load at that point. I can't use save points as I have different values - like the level of your cards, etc - which are things that are different for everyone.
footsocktoe
Scratcher
1000+ posts

How do you save variables per user?

GreatGamingCats wrote:

I could use a list, but how do I make it so that I will load everything and that it will load everything per player - so if someone played till this point and he logs out he will be at the start again because he isnt in his account but if he is it will load at that point. .

You would use cloud lists and the username block. There are a large number of tutorial projects about cloud lists and saving games so I'll let you use the search box to do your research on the subject.
SuperFriedDudes
Scratcher
3 posts

How do you save variables per user?

Hello I need a script that saves variables For clicker games script messages is most appreciated
set thistothat
Thefrenchpeople
Scratcher
500+ posts

How do you save variables per user?

SuperFriedDudes wrote:

Hello I need a script that saves variables For clicker games script messages is most appreciated
set thistothat
Please don't necropost, this topic is from 2017. For help with this, please make a new topic.
gamemaker8392939393
Scratcher
12 posts

How do you save variables per user?

SuperFriedDudes wrote:

Hello I need a script that saves variables For clicker games script messages is most appreciated
set thistothat

sorry this does not work :(
dragonmaker209
Scratcher
2 posts

How do you save variables per user?

i do not get????????????
movesteps
mishskater
Scratcher
9 posts

How do you save variables per user?

hey im trying to make a vote system and i need help!

movehelpme!steps
whenclickedforeversayi need help with a voting system and saving for variables themselves!
deck26
Scratcher
1000+ posts

How do you save variables per user?

mishskater wrote:

hey im trying to make a vote system and i need help!

movehelpme!steps
whenclickedforeversayi need help with a voting system and saving for variables themselves!
So create your own topic instead of necroposting please.
mishskater
Scratcher
9 posts

How do you save variables per user?

footsocktoe wrote:

GreatGamingCats wrote:

Thanks guys, but I've seen people like griffpatch not use savecodes and save their game. I just want to know if there is an easy way to save those non-variables as I dont want to make a lot of variables for every sprite i have.

Are you asking if there is a way to save variables without making variables?

What do you mean by “non-variables”? What is a non-variable?

dude they mean stuff that doesn't have to do with variables! like if she wanted to save ummmm, a character design game and they get to save it, so you r not trying to save variables, your saving a costume for each user!
whenIreceive easy questionv
forevercantfigureitoutend
Daniwanny01
Scratcher
1 post

How do you save variables per user?

Again, Please don't necropost

Powered by DjangoBB