This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-04-07 01:42:40

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Deleting Unused Variables

Is there any way in the editor to automatically delete all unused variables?


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#2 2009-04-07 01:59:03

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Deleting Unused Variables

No, I don't think so. You would probably have to do it manually by opening the variables section SCRATCH and hitting 'Delete a variable'.

Form what I've seen, SCRATCH seems to only automatically delete unused broadcast messages, and variables that I've attempted to delete (but forgot to remove in a script) come back when I hit 'Save'.

I'd like to see the automatic deletion for unused variables, it can be helpful in saving time and saving space.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#3 2009-04-07 05:15:24

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Deleting Unused Variables

While we're at it...let's ask for a variable renaming and scope changing feature!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2009-04-07 11:53:41

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Deleting Unused Variables

Paddle2See wrote:

While we're at it...let's ask for a variable renaming and scope changing feature!

Hmmmm... Scope changing? I'd Google it, but I fear I'm only going to get results for sniper rifles, telescopes, and binoculars.  tongue


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#5 2009-04-07 15:38:59

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Deleting Unused Variables

He's referring to the ability to change a variable from only one sprite to all sprites.

I've had trouble with this scope stuff when dragging a script from one sprite to another.  If it includes any local variables, it doesn't work properly on the second sprite.  I've had to rewrite the block by looking at the newly dragged in script.


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#6 2009-04-07 16:00:16

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Deleting Unused Variables

BoltBait wrote:

He's referring to the ability to change a variable from only one sprite to all sprites.

I've had trouble with this scope stuff when dragging a script from one sprite to another.  If it includes any local variables, it doesn't work properly on the second sprite.  I've had to rewrite the block by looking at the newly dragged in script.

I haven't had that trouble...but I have had trouble after importing a sprite with scripts from another project. Try saving the project any time you find the variables aren't working right...that often sorts out the problem.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#7 2009-04-07 21:04:22

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Deleting Unused Variables

BoltBait wrote:

He's referring to the ability to change a variable from only one sprite to all sprites.

Oh, ok.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

Board footer