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

#1 2010-02-21 15:17:34

KROOOE
Scratcher
Registered: 2009-08-29
Posts: 15

"Hidden" Sensor

I would help me a lot if there were a hidden thing in sensors so I could put, If hidden go to... So that objects that are hidden dont do anything that I don't want them to, or if they say if hidden play sound whatever.

Last edited by KROOOE (2010-02-21 15:18:58)

Offline

 

#2 2010-02-21 15:20:32

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: "Hidden" Sensor

You could make a variable called "hidden"
And if hidden equals one, you set the ghost effect to 100 (therefore, hit collisions still apply)... If that's what you mean...


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#3 2010-02-24 02:56:26

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: "Hidden" Sensor

you can add that to scratch if you want.
Just add the block spec

Code:

('hidden?' #b #isHidden)

under looks.
No function required!
If you don't know how to add blocks, then don't worry.
You can use this block in Streak, too.
I do admit, though, that having it in the sensor block would be better.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

Board footer