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
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?
Offline
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
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.
Offline
or you could have some sort of pass code/letter that shows all the variables, but they hide again upon the green flag.
Offline
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
Last edited by Dan01 (2008-12-10 12:57:05)
Offline