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

#1 2012-09-02 09:44:52

killou
New Scratcher
Registered: 2012-08-30
Posts: 2

how to know if another sprite is hidden ?

Hello

In the script of an object, how can I know if another object is hidden or not ?
I don't want to use a specific variable for that

Thanks in advance

Killou

Offline

 

#2 2012-09-02 09:47:18

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: how to know if another sprite is hidden ?

You can't without a variable.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-09-09 03:44:03

killou
New Scratcher
Registered: 2012-08-30
Posts: 2

Re: how to know if another sprite is hidden ?

so just a suggestion for the next version of Scratch : add a sensor to known if a sprite is hidden or not

Offline

 

#4 2012-09-09 04:21:29

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: how to know if another sprite is hidden ?

I would use a workaround, but I support.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#5 2012-09-09 09:54:24

OverPowered
Scratcher
Registered: 2012-07-27
Posts: 100+

Re: how to know if another sprite is hidden ?

jontmy00 wrote:

I would use a workaround, but I support.


Newest project: Tunnel TEST ~http://blocks.scratchr.org/API.php?user=OverPowered&action=onlineStatus~ On my mind: Unicameralism

Offline

 

#6 2012-09-10 19:07:22

Bklecka
Scratcher
Registered: 2011-08-27
Posts: 1000+

Re: how to know if another sprite is hidden ?

Unfortunately the Scratch Team never add stuff that has a workaround  sad
However the workaround isn't hard to make  smile

set [hiding?] to (true)
hide
When showing:
set [hiding?] to (false)
show


http://i48.tinypic.com/106ijc9.jpg

Offline

 

#7 2012-09-10 20:08:51

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: how to know if another sprite is hidden ?

There is squeak code for this. I think it's in the block library.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#8 2012-09-10 20:24:32

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: how to know if another sprite is hidden ?

jvvg wrote:

There is squeak code for this. I think it's in the block library.

+1

Panther has this block preinstalled.


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#9 2012-09-10 20:35:39

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: how to know if another sprite is hidden ?

jji7skyline wrote:

jvvg wrote:

There is squeak code for this. I think it's in the block library.

+1

Panther has this block preinstalled.

So does Insanity.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#10 2012-09-11 15:43:16

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: how to know if another sprite is hidden ?

Bklecka wrote:

Unfortunately the Scratch Team never add stuff that has a workaround  sad
However the workaround isn't hard to make  smile

set [hiding?] to (true)
hide
When showing:
set [hiding?] to (false)
show

This does have a workaround, but if you need lot's of hiding, it gets annoying.

Offline

 

Board footer