Discuss Scratch

Yeetoburro1
Scratcher
1000+ posts

How to make a variable during a project????

Hi, I was wondering if anyone knows how to create a cloud variable during a game so that I could create variables for someone's x and y coordinates when they join the game( the new variables would be their username and x, and their username and y)
Ni_pro
Scratcher
23 posts

How to make a variable during a project????

simple.
Go to variable and then press make a variable . Name your variable ,select for this sprite or for all sprite
setscore toto10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
TalentedProjectMaker
Scratcher
43 posts

How to make a variable during a project????

Yeetoburro1 wrote:

Hi, I was wondering if anyone knows how to create a cloud variable during a game so that I could create variables for someone's x and y coordinates when they join the game( the new variables would be their username and x, and their username and y)
To create a cloud variable you must be a Scratcher (which you are).
Just click make a variable like you do for other variables and tick the option Cloud variable (stored on server).
Then click OK. The cloud variable will be made with a cloud to the left of its name

You can't create a variable during a project is in progress but assign it a value.

If you want to set the variable values after the player joined you can do this:
ifjoinedthenset☁ xtoxpositionset☁ ytoyposition

Last edited by TalentedProjectMaker (May 18, 2020 08:08:10)

deck26
Scratcher
1000+ posts

How to make a variable during a project????

You cannot create variables during a run of the project, you can only write to existing variables.
deck26
Scratcher
1000+ posts

How to make a variable during a project????

Dylsforthekills wrote:

hi
Please don't spam.

Powered by DjangoBB