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

#1 2010-06-13 06:16:08

benjamin2
Scratcher
Registered: 2008-10-18
Posts: 1000+

Win The Game! help

I'm attempting to make a project called Win The Game! On level 2 ghosts are hidden across the screen and you must attempt to click them, but they don't show unless you click them. Even if you click where the sprite is, it won't count if it's not showing. How can I make it so that when you click where the ghost is it shows up?


http://i.imgur.com/gp6tZ.gif

Offline

 

#2 2010-06-13 06:23:42

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Win The Game! help

Try using:

[set [ghost v] effect to ( 99 )]

...instead of "hide" - hidden sprites can't sense when they're being clicked, unfortunately. But, setting the ghost effect to 99 means that people won't be able to see the ghosts very easily - and they can sense clicks.

Hope this helps  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#3 2010-06-13 10:31:58

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Win The Game! help

To add on to what Wolfie1996 said, setting the ghost effect to 100 would keep the sprite completely invisible (as opposed to 99 where it is *vaguely* possible to see it) as well as make the sprite fully-functional. If the sprite is hidden with the "hide" block, the "When ___ Clicked" block won't work, while the <touching [mouse-pointer] > will.

Offline

 

#4 2010-06-13 11:41:14

benjamin2
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Win The Game! help

Thank you you two! I'll solve it later!


http://i.imgur.com/gp6tZ.gif

Offline

 

#5 2010-06-13 13:18:19

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Win The Game! help

coolstuff wrote:

To add on to what Wolfie1996 said, setting the ghost effect to 100 would keep the sprite completely invisible (as opposed to 99 where it is *vaguely* possible to see it) as well as make the sprite fully-functional. If the sprite is hidden with the "hide" block, the "When ___ Clicked" block won't work, while the <touching [mouse-pointer] > will.

100% doesn't seem to work for me (sensing clicks)...  hmm  99.99 does, though... and I can't see the sprite when it's at that amount...


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#6 2010-06-13 13:26:43

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Win The Game! help

Wolfie1996 wrote:

coolstuff wrote:

To add on to what Wolfie1996 said, setting the ghost effect to 100 would keep the sprite completely invisible (as opposed to 99 where it is *vaguely* possible to see it) as well as make the sprite fully-functional. If the sprite is hidden with the "hide" block, the "When ___ Clicked" block won't work, while the <touching [mouse-pointer] > will.

100% doesn't seem to work for me (sensing clicks)...  hmm  99.99 does, though... and I can't see the sprite when it's at that amount...

Oh, really? I didn't actually notice that before... Thanks!

Offline

 

Board footer