Discuss Scratch
- Sonickyle
-
1000+ posts
Distinguishing unused variables
O_O My maximum amount of unused variables usually never goes over 1, but in my case,
<snip>
It's not really that easy to find which are necessary, especially since I could change the scripts at any time, and I still need to add scripts, and I'm usually not 100% sure how it's all going to work out.
How many variables do you have on your variable list?
My Patapony project has over 30 variables, which I believe 5 of which are unused.
Also your script layout really makes me want to Right Click > Clean Up.

- RPFluffy
-
1000+ posts
Distinguishing unused variables
Really I find the more variables unused the larger and more complex the project, so it would really only be good with a complex project..O_O My maximum amount of unused variables usually never goes over 1, but in my case,
<snip>
It's not really that easy to find which are necessary, especially since I could change the scripts at any time, and I still need to add scripts, and I'm usually not 100% sure how it's all going to work out.
How many variables do you have on your variable list?
My Patapony project has over 30 variables, which I believe 5 of which are unused.
Also your script layout really makes me want to Right Click > Clean Up.
- Alberknyis
-
1000+ posts
Distinguishing unused variables
O_O My maximum amount of unused variables usually never goes over 1, but in my case,
<snip>
It's not really that easy to find which are necessary, especially since I could change the scripts at any time, and I still need to add scripts, and I'm usually not 100% sure how it's all going to work out.
How many variables do you have on your variable list?
My Patapony project has over 30 variables, which I believe 5 of which are unused.
Also your script layout really makes me want to Right Click > Clean Up.
How many variables? 20. And that's just for that sprite

Yet.
Also, nope

- RPFluffy
-
1000+ posts
Distinguishing unused variables
Same here, I need everything in a certain placeO_O My maximum amount of unused variables usually never goes over 1, but in my case,
<snip>
It's not really that easy to find which are necessary, especially since I could change the scripts at any time, and I still need to add scripts, and I'm usually not 100% sure how it's all going to work out.
How many variables do you have on your variable list?
My Patapony project has over 30 variables, which I believe 5 of which are unused.
Also your script layout really makes me want to Right Click > Clean Up.
How many variables? 20. And that's just for that sprite. As for unused variables, I don't really have those.
Yet.
Also, nope. No cleaning up my scripts. I need everything collected in groups and separated and put together EXACTLY LIKE THAT or else even I won't remember what the heck's going on in that result of a black hole attack.

I think someone said something about a dropdown search for variables or something, I agree with that because you can find one of millions of variables..
- cwrivera99
-
500+ posts
Distinguishing unused variables
It would help filter out unused variables, but there's not too many times in which I've needed it. I think that in the variable list if a variable is not used anywhere in the project it should show as grey instead of organge so you know you're not using the variable in your project.
- MrSherlockHolmes
-
500+ posts
Distinguishing unused variables
I sort of agree with Fluffy. However, it could be helpful because it will make it easier for new members.I'm not a planning wizard, but I still think at least 1 or 2 steps ahead of me, I mean I see that the only reason would be if you used a variable but found a better way without it and instead forgot to delete, but that's all I can think of.because some people aren't planning wizards and end up deciding to do something that won't need that variable, and then they would end up having an unused variable. Like a bunch of iterators.But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
- RPFluffy
-
1000+ posts
Distinguishing unused variables
I'm more on to a variable search thing so it's easier to find the right variables.I sort of agree with Fluffy. However, it could be helpful because it will make it easier for new members.I'm not a planning wizard, but I still think at least 1 or 2 steps ahead of me, I mean I see that the only reason would be if you used a variable but found a better way without it and instead forgot to delete, but that's all I can think of.because some people aren't planning wizards and end up deciding to do something that won't need that variable, and then they would end up having an unused variable. Like a bunch of iterators.But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
I don't see new members using 15 variables and eventually not using them, I mean there IS a help thing..
- ChocolatePi
-
1000+ posts
Distinguishing unused variables
yeah, and then if there's no search results you know you didn't use it!I'm more on to a variable search thing so it's easier to find the right variables.I sort of agree with Fluffy. However, it could be helpful because it will make it easier for new members.I'm not a planning wizard, but I still think at least 1 or 2 steps ahead of me, I mean I see that the only reason would be if you used a variable but found a better way without it and instead forgot to delete, but that's all I can think of.because some people aren't planning wizards and end up deciding to do something that won't need that variable, and then they would end up having an unused variable. Like a bunch of iterators.But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
I don't see new members using 15 variables and eventually not using them, I mean there IS a help thing..
- RPFluffy
-
1000+ posts
Distinguishing unused variables
That wouldn't be useful, why?, well because what if you want to find an unused variable, and then use it?yeah, and then if there's no search results you know you didn't use it!I'm more on to a variable search thing so it's easier to find the right variables.I sort of agree with Fluffy. However, it could be helpful because it will make it easier for new members.I'm not a planning wizard, but I still think at least 1 or 2 steps ahead of me, I mean I see that the only reason would be if you used a variable but found a better way without it and instead forgot to delete, but that's all I can think of.because some people aren't planning wizards and end up deciding to do something that won't need that variable, and then they would end up having an unused variable. Like a bunch of iterators.But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
I don't see new members using 15 variables and eventually not using them, I mean there IS a help thing..
- ChocolatePi
-
1000+ posts
Distinguishing unused variables
I'm supporting you with the “search for variable” feature.That wouldn't be useful, why?, well because what if you want to find an unused variable, and then use it?yeah, and then if there's no search results you know you didn't use it!I'm more on to a variable search thing so it's easier to find the right variables.I sort of agree with Fluffy. However, it could be helpful because it will make it easier for new members.I'm not a planning wizard, but I still think at least 1 or 2 steps ahead of me, I mean I see that the only reason would be if you used a variable but found a better way without it and instead forgot to delete, but that's all I can think of.because some people aren't planning wizards and end up deciding to do something that won't need that variable, and then they would end up having an unused variable. Like a bunch of iterators.But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
I don't see new members using 15 variables and eventually not using them, I mean there IS a help thing..
- RPFluffy
-
1000+ posts
Distinguishing unused variables
Yeah, I think the person who created the topic should change it to that!I'm supporting you with the “search for variable” feature.That wouldn't be useful, why?, well because what if you want to find an unused variable, and then use it?yeah, and then if there's no search results you know you didn't use it!I'm more on to a variable search thing so it's easier to find the right variables.I sort of agree with Fluffy. However, it could be helpful because it will make it easier for new members.I'm not a planning wizard, but I still think at least 1 or 2 steps ahead of me, I mean I see that the only reason would be if you used a variable but found a better way without it and instead forgot to delete, but that's all I can think of.because some people aren't planning wizards and end up deciding to do something that won't need that variable, and then they would end up having an unused variable. Like a bunch of iterators.But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
I don't see new members using 15 variables and eventually not using them, I mean there IS a help thing..
- Sonickyle
-
1000+ posts
Distinguishing unused variables
What kind of search feature?Yeah, I think the person who created the topic should change it to that!I'm supporting you with the “search for variable” feature.That wouldn't be useful, why?, well because what if you want to find an unused variable, and then use it? yeah, and then if there's no search results you know you didn't use it!
- RPFluffy
-
1000+ posts
Distinguishing unused variables
You can search for a specific variable by typing it in to a search bar thingy in the data section.What kind of search feature?Yeah, I think the person who created the topic should change it to that!I'm supporting you with the “search for variable” feature.That wouldn't be useful, why?, well because what if you want to find an unused variable, and then use it? yeah, and then if there's no search results you know you didn't use it!
- ChocolatePi
-
1000+ posts
Distinguishing unused variables
and then it will open a sort of “magnifying glass” thing and go to each time the variable is mentioned, and if none, it'll give you an error message.You can search for a specific variable by typing it in to a search bar thingy in the data section.What kind of search feature?Yeah, I think the person who created the topic should change it to that!I'm supporting you with the “search for variable” feature.That wouldn't be useful, why?, well because what if you want to find an unused variable, and then use it? yeah, and then if there's no search results you know you didn't use it!
- jrezneckbhds
-
500+ posts
Distinguishing unused variables
I agree with you, but I still support!And how does this relate?Sometimes you don't think you need a variable anymore but want to double-check before deleting it, end of story.Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.Well depends on how many variables used in each script and stuff, you know..Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
My maximum amount of unused variables usually never goes over 1, but in my case,
It's not really that easy to find which are necessary, especially since I could change the scripts at any time, and I still need to add scripts, and I'm usually not 100% sure how it's all going to work out.
- RPFluffy
-
1000+ posts
Distinguishing unused variables
Ok!I agree with you, but I still support!And how does this relate?Sometimes you don't think you need a variable anymore but want to double-check before deleting it, end of story.Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.Well depends on how many variables used in each script and stuff, you know..Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
My maximum amount of unused variables usually never goes over 1, but in my case,
It's not really that easy to find which are necessary, especially since I could change the scripts at any time, and I still need to add scripts, and I'm usually not 100% sure how it's all going to work out.
Yeah!and then it will open a sort of “magnifying glass” thing and go to each time the variable is mentioned, and if none, it'll give you an error message.You can search for a specific variable by typing it in to a search bar thingy in the data section.What kind of search feature?Yeah, I think the person who created the topic should change it to that!I'm supporting you with the “search for variable” feature.That wouldn't be useful, why?, well because what if you want to find an unused variable, and then use it? yeah, and then if there's no search results you know you didn't use it!
- jrezneckbhds
-
500+ posts
Distinguishing unused variables
I agree, but can't you always right-click them, and then delete them? I also think there should be a “delete unused variables” button so if, you, like me, forgot about lists and made like 50 variables you don't have to go through deleting EVERY SINGLE ONE.