Discuss Scratch

mobluse
Scratcher
100+ posts

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

I think one should be able to change an existing variable or list from “For this sprite only” to “For all sprites” and vice versa. Now one has to delete and remake the variable or list with the right globality.
ats-ll
Scratcher
75 posts

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

mobluse wrote:

I think one should be able to change an existing variable or list from “For this sprite only” to “For all sprites” and vice versa. Now one has to delete and remake the variable or list with the right globality.
existing lists or variable or deleting lists or variable?

ProdigyZeta7
Scratcher
1000+ posts

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

Yes! Support!
mobluse
Scratcher
100+ posts

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

ats-ll wrote:

mobluse wrote:

I think one should be able to change an existing variable or list from “For this sprite only” to “For all sprites” and vice versa. Now one has to delete and remake the variable or list with the right globality.
existing lists or variable or deleting lists or variable?
I'm not sure I understand your question, but I think it should work as when you delete a variable and remake it with the right this/all. The value could be preserved anyway – useful if it was difficult to create the value. The idea is to make it faster and safer to edit since you don't have to type in the name again.
Nathan98765
Scratcher
61 posts

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

Support for sure!
DaSpudLord
Scratcher
1000+ posts

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

Support, but what would happen if the variable is being used in multiple sprites?
stickfiregames
Scratcher
1000+ 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?
Probably all the sprites using it would get a new local variable.

Support.
Deerleg
Scratcher
1000+ posts

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

Support, especially for lists. It's annoying when you have to recreate a super-long list just for this.
CatsUnited
Scratcher
1000+ posts

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

Support.
Cream_E_Cookie
Scratcher
1000+ posts

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

Support
ScratchStangs
Scratcher
2 posts

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

support
jamezofchez72
Scratcher
4 posts

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

Guys, I know I'm late but I had the same problem. However, if you drag the variable or list (in rounded form) to the sprite you want to give the variable access to you can use it. Helped me out so much.

Last edited by jamezofchez72 (March 10, 2019 17:27:59)

CodingKidz1544
Scratcher
39 posts

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

What happens if two different sprites have variables for them only with the same name but different values and you make one for all?
TheBurger82
Scratcher
100+ posts

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

23984119702384981023479813420172843908971243907812349870123490873142% support.
LuckyLucky7
Scratcher
1000+ posts

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

Semi-support, this is a great idea but there is a workaround for this(for when you create the variable, a pop-up shows up with options). Although the workaround is easy to do, this feature would make swapping between global and local variables convenient and less time-consuming.
fireincarnate
Scratcher
100+ posts

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

change [support v] by ((support) * ([10^ v] of (309) :: operators)) // 10^ of 309 reports infinity
PizzaAddict4Life
Scratcher
1000+ posts

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

Support and I think it could just be a thing on the right click menu saying “Switch to cloud” “Switch to all sprites” and “Switch to local”, and I would assume all sprites that have that variable would just get their own local variable of that. Supa easy!
Sheep_maker
Scratcher
1000+ posts

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

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.
GuineaGod
Scratcher
500+ posts

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

Good Idea!
codethelife
Scratcher
29 posts

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

set [cool] to [for all sprites]
set [cool] to [this sprite only]

Powered by DjangoBB