Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a variable during a project????
- Yeetoburro1
-
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
-
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
Go to variable and then press make a variable . Name your variable ,select for this sprite or for all sprite
- TalentedProjectMaker
-
43 posts
How to make a variable during a project????
To create a cloud variable you must be a Scratcher (which you are). 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)
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:
Last edited by TalentedProjectMaker (May 18, 2020 08:08:10)
- deck26
-
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.
- Discussion Forums
- » Help with Scripts
-
» How to make a variable during a project????