Pages: 1
Topic closed
Well, I've tried figuring this out by myself but can't get to the answer!
I start out on the living room 'background' with several variables on the screen. Iike 'food' 'bath' and 'water' and door to go outside to the next background, that leads to a shop and another shop. I can hide the 'food, water and bath' sprites. but the quantites of the sprites I have the problem with. I've seen this done before from angelical's virtual dog project. So, main question, How do you hide variables when switching backgrounds?
Offline
i don't think it's possible. but it is something they should add in the next version of Scratch. wats the link to angelical's project? i want to see it. most likley she just had a sprite cover up the variable when she wanted it to.
<when green flag clicked>
<hide>
<when I receive[ show!!!
<set x to( variable x
<set y to( variable y
Last edited by funkymonkey (2008-03-25 21:58:49)
Offline
Really, all you can do is make sprites to show the variables. A pain, but the only way to hide them.
Offline
Heres the link for the virtual dog project. http://scratch.mit.edu/projects/angelical/40435
And thanks for the advice!!!!
Offline
Lol, i just made a sprite with 101 costumes to show a variable... It was a pain but worth it!
Offline
Oh and your question, use layers. Make your background into a sprite and make it go like <go back(99)layers> layers back but make sur it covers up the variable. Then whenever you want a new sprite to appear make it<go to front>
Offline
Its easier to make a sprite that shows the digits 0-9, and use 3 of them to show the numbers 0-999...
Offline
just make a sprite to cover it up.
<when I receive[ DontShowVarriable
<show>
<when I receive[ DoShow
<hide>
<when green flag clicked>
<go to front>
Last edited by stevii (2008-04-02 16:57:55)
Offline
Topic closed
Pages: 1