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

#1 2013-04-13 08:07:45

kevvy_wilch
New Scratcher
Registered: 2012-12-07
Posts: 1

Layers and Colour Detection

Hi,
I have started to make a game but can't make the sprites detect each other based on colour. I suspect it is something to do with layers. Can someone explain how the layers and colour detection work? Thanks.

Offline

 

#2 2013-04-13 15:52:19

SilverDomination
Scratcher
Registered: 2011-11-23
Posts: 500+

Re: Layers and Colour Detection

kevvy_wilch wrote:

Hi,
I have started to make a game but can't make the sprites detect each other based on colour. I suspect it is something to do with layers. Can someone explain how the layers and colour detection work? Thanks.

Try this, if you haven't already.

when gf clicked // activates the command
forever if <[Sprite v] is touching color []> // whenever your sprite touches this color...
do action // ... then it will do what is in here.
end

Last edited by SilverDomination (2013-04-13 15:52:43)


Sooner or Later. Or sooner. Not much, except for a lot. In a way. But it will come no matter what.

Offline

 

#3 2013-04-14 06:13:13

BB_The_Blue
New Scratcher
Registered: 2013-04-14
Posts: 1

Re: Layers and Colour Detection

Hi, thanks for your reply.  Where do I get the sprite is touch colour commands?  I cant find them in the list of commands?

Offline

 

#4 2013-04-14 10:16:19

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: Layers and Colour Detection

BB_The_Blue wrote:

Hi, thanks for your reply.  Where do I get the sprite is touch colour commands?  I cant find them in the list of commands?

It looks like this:

<touching color [#70FF07]?>
It's in the sensing commands, at the top.

Hope that helped!

With regards

~7734f


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

Board footer