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

#1 2008-01-07 11:51:29

04lukeb
Scratcher
Registered: 2007-09-09
Posts: 45

Hiding and showing variables.

I think it would be good if you could hide and show variables at different times in projects. I have made some projects with short intros and the variables are displayed. Not a huge problem but it would be useful. I was thinking a "hide --variable name--" could be added to the variable tab.


I dream of a better tomorrow... where chickens can cross roads and not have their motives questioned

Offline

 

#2 2008-01-07 12:09:42

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Hiding and showing variables.

This has been suggested many times before.  I agree that hide/show variable would be good to have under program control.  So, for that matter, would the 3 different ways to show a variable.

I'd like the variable pane to be decluttered by having the variables themselves be in a pulldown list and have just the operations be on the variables pane:

value of <v>
set <v> to <value>
change <v> by <value>
show <v> as [labeled display | scoreboard | slider]
hide <v>
set slider <v> min: <value> max: <value>
move display of <v> to x:<> y:<>
display of <v> to front
send display of <v> back <> layers

This would make variables much easier to work with (especially when there are more than fit on the pane) and would make it much easier to change variables (pulldown lists are much easier than pulling out a block and replacing it with another).

Offline

 

#3 2008-01-07 12:30:59

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Hiding and showing variables.

These are both great ideas, it would also be great to have the ability to rename variables. 

I recently learned that the new version of Scratch allows a sprite to "Sense" the value of another sprite's variables.   This really helps clean things up, in my latest big project, I have very few global ("for all sprites") variables, most of the variables are local ("for this sprite only") to the sprite that needs to be able to change the value of the variable. 

The sensing block that lets you get information from other sprites is much easier to use (pull-down) than going to the variable pane and scrolling thru a long list.  This is a HUGE improvement.

-MrEd

Last edited by EdnaC (2008-01-07 12:31:22)

Offline

 

Board footer