Discuss Scratch
- lm1996
-
Scratcher
1000+ posts
edit variable
POST HERE YA PEOPLES!!!!!!!!!!!!!!Is that a bump?
——————————
Support, I sometimes forget to change the options.
- portalpower
-
Scratcher
1000+ posts
edit variable
if it bump then it spam if it spam then it bump (24 hour rule) so if you say it bump it spam and if you say it spam i bump[/offtopic]POST HERE YA PEOPLES!!!!!!!!!!!!!!Is that a bump?
- k0d3rrr
-
Scratcher
1000+ posts
edit variable
Bringing this topic to the front page, because of a topic that was suggesting the same thing as this (also known as a duplicate).
This would be very useful for projects where you want a variable that originally was for one sprite only to be for all sprites.
This would be very useful for projects where you want a variable that originally was for one sprite only to be for all sprites.
- BionicBoy554
-
Scratcher
1000+ posts
edit variable
NO you can not change the color of the variable due to confusion with reporters in other sections and
NO because fonts would not impact the project at all
NO because fonts would not impact the project at all
- portalpower
-
Scratcher
1000+ posts
edit variable
We don't talk about my other posts here.
(#68)What? This is about right clicking a variable to change it to be for all sprites, for this sprite only, and cloud. There is nothing about fonts or changing colors.
NO you can not change the color of the variable due to confusion with reporters in other sections and
NO because fonts would not impact the project at all
Last edited by portalpower (May 4, 2022 14:49:21)
- historical_supa
-
Scratcher
1000+ posts
edit variable
Isn't this already a feature?No.
What if you make a variable “for this sprite only” and make it a cloud variable?
- Roblox888i
-
Scratcher
1000+ posts
edit variable
Thats not possible.Isn't this already a feature?No.
What if you make a variable “for this sprite only” and make it a cloud variable?
- historical_supa
-
Scratcher
1000+ posts
edit variable
If this got added you could technically do it.What if you make a variable “for this sprite only” and make it a cloud variable?Thats not possible.
Last edited by historical_supa (May 5, 2022 09:45:21)
- DA_BESTIST_DADDA
-
Scratcher
4 posts
edit variable
You can convert variables between types by editing the json.
Download the project to your computer.
The .sb3 file is just a zip file. Unzip it with ‘unzip’ or whatever.
Inside there is a ‘project.json’ file, which is the project code.
You can make it readable by using ‘jq’ or something similar to format it.
Global variables are listed under the ‘target’ which is set to the stage (“isStage”: true), whereas local variables are listed under a sprite target (“isStage”: false, “name”: “sprite name”).
You can move them around. Be careful to keep the json valid.
Then zip the files up into the .sb3 file again, and upload to scratch (probably make a new project for the upload in case of errors).
Download the project to your computer.
The .sb3 file is just a zip file. Unzip it with ‘unzip’ or whatever.
Inside there is a ‘project.json’ file, which is the project code.
You can make it readable by using ‘jq’ or something similar to format it.
Global variables are listed under the ‘target’ which is set to the stage (“isStage”: true), whereas local variables are listed under a sprite target (“isStage”: false, “name”: “sprite name”).
You can move them around. Be careful to keep the json valid.
Then zip the files up into the .sb3 file again, and upload to scratch (probably make a new project for the upload in case of errors).
- medians
-
Scratcher
1000+ posts
edit variable
Well, you could delete the list or variable and then recreate it as for this sprite only/for all sprites.
Also, you could rename variables before this topic was created.
Also, you could rename variables before this topic was created.
Last edited by medians (May 4, 2023 01:36:28)
- DA_BESTIST_DADDA
-
Scratcher
4 posts
edit variable
Well, you could delete the list or variable and then recreate it as for this sprite only/for all sprites.This does not work. If you delete a variable, scratch deletes all references to it. Any blocks which were using the variable are deleted when you delete the variable.
Last edited by DA_BESTIST_DADDA (May 4, 2023 01:35:45)
- medians
-
Scratcher
1000+ posts
edit variable
Oh god I forgot 3.0 added that until I saw your reply LOLLWell, you could delete the list or variable and then recreate it as for this sprite only/for all sprites.This does not work. If you delete a variable, scratch deletes all references to it. Any blocks which were using the variable are deleted when you delete the variable.
Last edited by medians (May 4, 2023 01:40:00)









