Discuss Scratch
- Discussion Forums
- » Suggestions
- » Convert between "for this sprite only" and "for all sprites" for variables
- nolbarry
-
100+ posts
Convert between "for this sprite only" and "for all sprites" for variables
Currently, when you drag scripts from your backpack with a new variable in them, it will automatically create that variable (yay!) as a global variable (boo!). In Scratch 2.0, this wasn't a problem because you could simply to just delete the variable and then remake it properly, but in 3.0 deleting a variable also deletes script containing it, so that's not an option. Instead, I have to “prepare” all the variables with the correct scope before dragging them in, which is a doable but a pain.
Thus, I suggest adding a way to change variable scope. You'd be able to change a global variable to sprite only using its context menu if that variable is not currently used elsewhere in the project, and you can do the opposite if no local variable exists elsewhere with the same name.
Additionally, it'd be nice if you could have local variables in the stage, but working around that is not a big enough issue for me to make it its own topic.
Thus, I suggest adding a way to change variable scope. You'd be able to change a global variable to sprite only using its context menu if that variable is not currently used elsewhere in the project, and you can do the opposite if no local variable exists elsewhere with the same name.
Additionally, it'd be nice if you could have local variables in the stage, but working around that is not a big enough issue for me to make it its own topic.
- PizzaAddict4Life
-
1000+ posts
Convert between "for this sprite only" and "for all sprites" for variables
Support for reasons already mentioned.
Last edited by PizzaAddict4Life (May 1, 2020 14:38:57)
- AlexeyChub
-
100+ posts
Convert between "for this sprite only" and "for all sprites" for variables
Support. It is SO annoying to have to replace all the global variables with local variables by HAND. And you can't just delete the variables, since that would delete all the code involving it. I usually have to spend 5 EXTREMELY annoying minutes replacing all the variables in projects.
- fdreerf
-
1000+ posts
Convert between "for this sprite only" and "for all sprites" for variables
I think a better title for this is “Keep backpacked local variables local” or something; I thought this was about changing a global variable to local via code or the editor.
- WhatThe_me387321
-
1 post
Convert between "for this sprite only" and "for all sprites" for variables
i cant convert from for all sprites to for this sprite only
- medians
-
1000+ posts
Convert between "for this sprite only" and "for all sprites" for variables
Because the option doesn’t exist yet. i cant convert from for all sprites to for this sprite only
Also, this is a duplicate:
https://scratch.mit.edu/discuss/topic/11405/?page=1
That’s what this is, but I am assuming they were using that as an example or sth. I think a better title for this is “Keep backpacked local variables local” or something; I thought this was about changing a global variable to local via code or the editor.
- ProgrammerGuy28
-
11 posts
Convert between "for this sprite only" and "for all sprites" for variables
Hey support, we need a way to convert our variables from for all sprites to this sprite only, and vice versa. I keep having to spend a lot of time placing every variable back to the original position, and missing a few. I ran into this for the scratchtober project, and quite a few others. Is there any way to do this? This could help with many projects and save time when ‘limited time’ game jams or something like that. If you can do it, thanks a lot.
- PPPDUD
-
1000+ posts
Convert between "for this sprite only" and "for all sprites" for variables
Support. Since it's a feature of a certain browser extension, this conversation could occur:
Hey @scemer, any idea why my variable creation dialog looks different from yours?
It's a browser extension that I've installed.
Oh, cool! Where can I get it?
You can get it at obvious.scam/buy.By integrating this feature with Scratch, people will be less likely to need to install browser extensions, meaning that conversations like the above would be less likely. bruh i dont even have roblox why u want my password ?
Edit: Can someone help me fix my BBCode?
Last edited by PPPDUD (Oct. 18, 2023 23:09:47)
- Paddle2See
-
1000+ posts
Convert between "for this sprite only" and "for all sprites" for variables
It looks like this is a duplicate topic of this one over here so I'll close it to keep the conversation all in one place.
Please use the existing topic in the link above.
Please use the existing topic in the link above.
- Discussion Forums
- » Suggestions
-
» Convert between "for this sprite only" and "for all sprites" for variables