Discuss Scratch

portalpower
Scratcher
1000+ posts

edit variable

POST HERE YA PEOPLES!!!!!!!!!!!!!!
lm1996
Scratcher
1000+ posts

edit variable

portalpower wrote:

POST HERE YA PEOPLES!!!!!!!!!!!!!!
Is that a bump?
——————————
Support, I sometimes forget to change the options.
portalpower
Scratcher
1000+ posts

edit variable

lm1996 wrote:

portalpower wrote:

POST HERE YA PEOPLES!!!!!!!!!!!!!!
Is that a bump?
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]
portalpower
Scratcher
1000+ posts

edit variable

bump
TopicBumper
New Scratcher
100+ posts

edit variable

Crump.
dhuls
Scratcher
1000+ posts

edit variable

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.
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
portalpower
Scratcher
1000+ posts

edit variable

We don't talk about my other posts here.

BionicBoy554 wrote:

(#68)
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
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.

Last edited by portalpower (May 4, 2022 14:49:21)

RED-001
Scratcher
500+ posts

edit variable

Isn't this already a feature?
historical_supa
Scratcher
1000+ posts

edit variable

RED-001 wrote:

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

historical_supa wrote:

RED-001 wrote:

Isn't this already a feature?
No.

What if you make a variable “for this sprite only” and make it a cloud variable?
Thats not possible.
historical_supa
Scratcher
1000+ posts

edit variable

Roblox888i wrote:

historical_supa wrote:

What if you make a variable “for this sprite only” and make it a cloud variable?
Thats not possible.
If this got added you could technically do it.

Last edited by historical_supa (May 5, 2022 09:45:21)

WimpyChikinNuggs
Scratcher
1 post

edit variable

You can but I don’t feel like telling
portalpower
Scratcher
1000+ posts

edit variable

bump
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).
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.

Last edited by medians (May 4, 2023 01:36:28)

DA_BESTIST_DADDA
Scratcher
4 posts

edit variable

medians wrote:

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

DA_BESTIST_DADDA wrote:

medians wrote:

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.
Oh god I forgot 3.0 added that until I saw your reply LOLL

Last edited by medians (May 4, 2023 01:40:00)

portalpower
Scratcher
1000+ posts

edit variable

Bump

Powered by DjangoBB