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

#1 2013-02-26 11:39:16

topazdragonlord
Scratcher
Registered: 2013-02-22
Posts: 500+

Need help making a variable hide/show automaticly

Is it possible to make a variable hide/show automaticly? - Im making a game and I want the level to hide when green flag is pressed but show when the intoduction is finished - does anyone know how I could possibly do it? Please help  smile


http://i45.tinypic.com/idumbk.png

Offline

 

#2 2013-02-26 12:04:16

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Need help making a variable hide/show automaticly

So... You have a variable named "Level", right?

Well, put this:

when gf clicked
hide variable [level v]

Then, you have a broadcast sent when the introduction is finished, and then put this:

when i receive [introduction finished v]
show variable [level v]

These scripts can be put in any sprite or even the stage, so wherever you want to stick them is fine since they have nothing to do with any sprite.


Hope that helps,

CAA14

Offline

 

#3 2013-02-26 13:39:09

topazdragonlord
Scratcher
Registered: 2013-02-22
Posts: 500+

Re: Need help making a variable hide/show automaticly

oh yeah theres a show/hide variable lol i totally forgot about that - thanks for your help it really helped alot thx  smile  - thanks  big_smile


http://i45.tinypic.com/idumbk.png

Offline

 

#4 2013-02-26 14:00:48

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Need help making a variable hide/show automaticly

No problem, glad i could help.  smile

Good luck on your project.

Regards,

CAA14

Offline

 

Board footer