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

#1 2009-11-28 13:54:41

theapproom
Scratcher
Registered: 2009-08-24
Posts: 38

I NEED HELP ON closeing sprites!!!!!!!

I need help on having a sprite hide when the mouse touches the color red or clicks the color red, how do I do this?

-This is the second time I asked this but the first time it didn't work and the guy went offline, so can please someone help me

.............. this is what "DawnLight" told me what do to but it didn't work

<when green flag clicked>
<forever>
<if>  << <mouse x> <and> <mouse y> >>

<touching[ mouse pointer
<broadcast[ hide sprite


Then on the sprite:
<when I receive[ hide sprite
<hide>

Last edited by theapproom (2009-11-28 13:55:29)

Offline

 

#2 2009-11-28 15:01:48

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: I NEED HELP ON closeing sprites!!!!!!!

For this you usually have to have a hidden sprite that acts as a mousepointer.
to do this:
1. Create a new sprite and make it a tiny dot, as small as it can be. Click OK.
(Optional) 2. Rename it "mouse-pointer"
3. Use this script for the sprite:
<when green flag clicked>
<forever>
<go to[ mouse pointer
4. Continue the script
<if><< <touching color[ red <or> << <touching color[ red <and> <mouse down?> >> >>
<broadcast[ Sprite Hide!

(Whatever sprite you want to hide)
<when I receive[ Sprite Hide!
<hide>

And that is it!

Offline

 

#3 2009-11-28 15:13:39

theapproom
Scratcher
Registered: 2009-08-24
Posts: 38

Re: I NEED HELP ON closeing sprites!!!!!!!

Okay thank you, both of the things you helped me on helped  smile   smile

Offline

 

Board footer