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?


i am got in! Maki-Tak!
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?


U^ェ^U::motion//This is Blocky. He lives in my signature. He is a trained attack block. He protects my siggy from kumquats.
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.










If you can read this, my signature cubeupload has been eaten by an evil kumquat!




or you just used Inspect Element, you hacker

;
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.

bottom text
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?

Enter signature here…
Check out my new game, Platformer Maker!
set array [Array v] size to () rows and () columns :: list

replace array [Array v] row () column () to [] :: list

(value in [Array v] at row () column () :: list )

(array [Array v] number of [rows v] :: list )
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.

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

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

This post is brought to you by Fireincarnate's brain™ (Thanks to WindOctahedron)
I am Fireincarnate, an average scratcher on this site who likes gaming, animating, and just being creative.
I would appreciate a follow at My Profile if you haven't already.
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!

Projects
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar

Studios
Be Moist | Forum Helpers

Topics
#RoadToMoist100

Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)

Whats a stick?

If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness

My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35





Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.



Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7








































































































Bippity Boppity Boo wow you found me congrats
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.

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
GuineaGod
Scratcher
500+ posts

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

Good Idea!

GuineaGod
Advanced coder ll Helper ll Platformer Expert ll
Bug Expert ll My stats ll Profile ll My Projects ll


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