Discuss Scratch

TheToothlessWolf
Scratcher
500+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

This is still relevant in 2020, so I'll go ahead and bump it.
squarepoint
Scratcher
100+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

support
jaguar1501
Scratcher
1000+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

squarepoint wrote:

support
Why do you support?
Kingansta100
Scratcher
11 posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

I only looked this up to get the answer, so can yall do yo job
-CloudGate-
Scratcher
1000+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

I support I've needed to do this 100s of times(literally not figuratively).
Vract0
Scratcher
100+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

Support.
Greg8128
Scratcher
500+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

Support
IndianRuby718
Scratcher
100+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

Support!! I think the “rename variable/list” option should be replaced with “edit variable/list” and it would work the same as editing a custom block.
Hearst10
Scratcher
100+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

support!
ForumHelperNanoPiex
Scratcher
500+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

Support. Then you don't have to delete a bunch of data.






5uper idea!
ForumHelperNanoPiex
Scratcher
500+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

Bump off the 2nd page!

codethelife wrote:

set [cool] to [for all sprites]
set [cool] to [this sprite only]
Don't blockspam. Oh, that's the answer???
IndianRuby718
Scratcher
100+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

DaSpudLord wrote:

Support, but what would happen if the variable is being used in multiple sprites?
I think all the reporters of that once-global variable in other sprites would turn into
([local v] of [sprite1 v]) 
when it turns local. I also think that the drop-down for the existing variable stacks should change to the first variable in the palette of that sprite instead of all those blocks just getting deleted when you both edit and delete a variable. Only when there's no variables left for a sprite should all those blocks get deleted.
gosoccerboy5
Scratcher
1000+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

So much support, how did I never see this?
If you feel like you should change a variable to all sprites, it's a pain in the !*#& [totally meant “butt” right there] to have to replace every variable. I think you should be able to right click it in the palette and select the option to do so.

Last edited by gosoccerboy5 (Dec. 28, 2020 23:46:19)

IndianRuby718
Scratcher
100+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

wow, like you post the question I literally just answered or say something I just proved my point against so many times XDDD

edit: not that many times :P

Last edited by IndianRuby718 (Feb. 3, 2021 05:01:54)

gosoccerboy5
Scratcher
1000+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

IndianRuby718 wrote:

DaSpudLord wrote:

Support, but what would happen if the variable is being used in multiple sprites?
I think all the reporters of that once-global variable in other sprites would turn into
([local v] of [sprite1 v]) 
when it turns local. I also think that the drop-down for the existing variable stacks should change to the first variable in the palette of that sprite instead of all those blocks just getting deleted when you both edit and delete a variable. Only when there's no variables left for a sprite should all those blocks get deleted.
K, makes sense
hfuller2953
Scratcher
42 posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

Support
SpicyMelon
Scratcher
22 posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

Sheep_maker wrote:

In Scratch 2.0, you could delete a variable and recreate it with the proper setting without deleting the blocks that use it.

Scratch 3.0 tried to be smart by deleting corresponding blocks when you delete a variable, but one way around this is to put the scripts in your backpack, delete and recreate the variable, then drag the scripts back out.

That would be a great if my project didn't already have more than 1850 individual blocks which are about 95 individual scripts that would have to go into the backpack and then brought back out and they would all be on top of each other and then I could do the “Clean Up Blocks” thing but then they would not be where I remember them to be lol
sathvikrias
Scratcher
500+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

Hearst10 wrote:

support!
because

-CloudGate- wrote:

I've needed to do this 100s of times(literally not figuratively).
lightningmc09
Scratcher
91 posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

I absoulutley agree!

change [foo v] to [for this sprite only v]::variables

Last edited by lightningmc09 (March 25, 2021 19:34:35)

reallysoftuser
Scratcher
1000+ posts

Change a variable or list from "For all sprites" to "For this sprite only" and vice versa

no support, just recreate the variable

Powered by DjangoBB