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

#1 2007-03-17 21:22:41

room209
Scratcher
Registered: 2007-03-17
Posts: 94

using if touching and hide

I am making a "find the hidden thing" sort of game.  I have the thing disappear with a hide bar at the beginning of the game, then go to a random spot under a set of sprites.  If the player touches the right sprite, it is supposed to show up.

The only problem is that I can't get the "if" and "touching?" bars to work on a hidden sprite.  It works just fine if the sprite is already showing and you use the "if" to hide it, but not the other way around.

Am I missed something or is this just the way Scratch works? 

Thanks.

Offline

 

#2 2007-03-18 11:13:11

jay
Scratch Team
Registered: 2007-03-11
Posts: 59

Re: using if touching and hide

Is it that you want to detect when touching a hidden sprite? I don't think Scratch can do that. But you can give the sprite a one-pixel costume and make it 99% ghost effect (under "looks" menu). Or... are you asking something else?

Offline

 

#3 2007-03-18 16:57:16

room209
Scratcher
Registered: 2007-03-17
Posts: 94

Re: using if touching and hide

Yes, I want to detect touching with a hidden sprite.  This would be a useful thing, but if Scratch doesn't do it, it doesn't!  The ghosting work around sounds possible, but complicates things.  I'll try, though, so thanks.

Offline

 

#4 2007-05-25 21:06:24

bman207
Scratcher
Registered: 2007-05-25
Posts: 5

Re: using if touching and hide

On of my Sprites is hidden. How do I "unhide" it?
Thanks!

Offline

 

#5 2007-05-26 13:43:13

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: using if touching and hide

The "show" block is the opposite of "hide".

(If ghosted, use 'clear graphics effects")

Offline

 

Board footer