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
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
Okay thank you, both of the things you helped me on helped
Offline