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

#1 2010-09-30 17:52:59

MachoWalrus
Scratcher
Registered: 2010-09-17
Posts: 9

Help Meh Nauw!

How do I make something so if you click 1 sprite, 2 sprites get hidden. Like, for a start menu.

Offline

 

#2 2010-09-30 17:56:17

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: Help Meh Nauw!

Use these scripts:

Script for sprite 1:
<when[ sprite 1 ]clicked>
<broadcast[ start game
<hide>

Script for sprite 2:
<when I receive[ start game
<hide>

Last edited by kimmy123 (2010-09-30 17:56:27)


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#3 2010-09-30 18:01:49

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Help Meh Nauw!

For something like that, the broadcast block would probably work best.

Give the sprite you're clicking this script:
http://i404.photobucket.com/albums/pp129/06dknibbs/1-2.gif

And the sprite(s) you want to hide this script:
http://i404.photobucket.com/albums/pp129/06dknibbs/2-2.gif

And they should disappear. You can also use the show block if you want them to come back.

Last edited by 06dknibbs (2010-09-30 18:03:21)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#4 2010-09-30 19:20:42

XplodingEggs
Scratcher
Registered: 2009-12-09
Posts: 100+

Re: Help Meh Nauw!

You could use a script something like this:
sprite1's:
[blocks] <when[ sprite1 ]clicked> [/blocks]
<broadcast[hide  ]and wait c>
sprite2 and sprite3's
[blocks] <when I receive[ hide]
<hide> [/blocks]
I hope this helped!
(I have no idea why the second block didn't work, sorry about that)

Last edited by XplodingEggs (2010-09-30 19:23:36)


http://i54.tinypic.com/102kqr7.jpg

Offline

 

Board footer