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

#1 2008-12-10 02:49:47

jj730105
Scratcher
Registered: 2008-12-10
Posts: 3

Variable Positioning

I suspect I know the answer to this question.  But, here it goes.  Is there a way to position variables on th screen for display so that they will stick in the same place every time?  When I close and open Scratch, my variables always move to the top, left-hand corner.

Someone else asked the same question here:
http://scratch.mit.edu/forums/viewtopic.php?id=11274

But, they have received no response.  Please help!

Offline

 

#2 2008-12-10 05:59:52

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Variable Positioning

Hi jj730105,

if you position variable watchers anywhere on the stage, they will stick to the same place everytime, unless you *hide* them before saving the project (in which case they will reappear at their default location upon the [show variable] command). So, if you would like your project to start with the variable watchers hidden, be sure to save your project while they are shown, and programmatically hide all watchers using the [hide variable] block when the green flag is pressed.

Did this answer your question?


Jens Mönig

Offline

 

#3 2008-12-10 06:42:17

jj730105
Scratcher
Registered: 2008-12-10
Posts: 3

Re: Variable Positioning

Jens,

Thank you very much. :-).. this explains my stress with variables.  I do have several hidden during different parts of the program.  I will play around with this knowledge a bit and see if I can get the variables to stay in position.

One thing will be tricky for me.  I have several screens in my program, and different variables display at different times.  Is there a strategy that is generally used to unhide variables at the end but keep them out of site (so that the users do not see them)?

Offline

 

#4 2008-12-10 09:52:32

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Variable Positioning

you could hide all variables behind a cover sprite (how about an entry screen?) at first, then first hide all variable watchers using the [hide variable] block, and - once you're done with that - hide the cover sprite.


Jens Mönig

Offline

 

#5 2008-12-10 10:48:57

jj730105
Scratcher
Registered: 2008-12-10
Posts: 3

Re: Variable Positioning

Gracias!

Offline

 

#6 2008-12-10 11:45:32

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Variable Positioning

or you could have some sort of pass code/letter that shows all the variables, but they hide again upon the green flag.

Offline

 

#7 2008-12-10 12:56:30

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Variable Positioning

Jens wrote:

Hi jj730105,

if you position variable watchers anywhere on the stage, they will stick to the same place everytime, unless you *hide* them before saving the project (in which case they will reappear at their default location upon the [show variable] command). So, if you would like your project to start with the variable watchers hidden, be sure to save your project while they are shown, and programmatically hide all watchers using the [hide variable] block when the green flag is pressed.

Did this answer your question?

That helped me to. Thanks Jens  big_smile

Last edited by Dan01 (2008-12-10 12:57:05)


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

Board footer