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

#1 2010-12-05 09:22:47

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

colour sensing...

can someone help me,i know all the scripts for it, who doesn't  wink
but i want the colour for the sensing to be a different sprite; behind the "visual" one(colourful)
is this possible layering ghost or would i have to use a point thing to calculate where the terrain is?

Offline

 

#2 2010-12-05 09:31:59

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: colour sensing...

You could make the sensing sprite a costume instead of a new sprite.  Then, in your sprite, switch to the sensing costume first, do the sensing, then for the last block switch back to the costume you see.  The sensing will all work out, and you don't see the sensors.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2010-12-05 11:02:06

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: colour sensing...

Kileymeister's solution would work, but only in presentation mode. I would recommend making a sensor sprite, setting the ghost on it to 100, and doing all the sensing on that. They look like this:
http://i54.tinypic.com/hsrqtz.jpg
For a more detailed explanation, if you need it, my full post on this is here.

Last edited by Harakou (2010-12-05 11:02:14)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2010-12-05 11:14:30

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: colour sensing...

Harakou wrote:

Kileymeister's solution would work, but only in presentation mode. I would recommend making a sensor sprite, setting the ghost on it to 100, and doing all the sensing on that. They look like this:
http://i54.tinypic.com/hsrqtz.jpg
For a more detailed explanation, if you need it, my full post on this is here.

It also should work online.  Just not offline in non-presentation mode.  Maybe it would occasionally flash the sensor for an instant online, but for the most part it should work.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#5 2010-12-07 11:59:47

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: colour sensing...

cruelty247 wrote:

,i know all the scripts for it

let me rephrase this I want the TERRAIN to be unseen in say purple it senses that with colour sensing
but there is a sprite with other colours on it to make it look nice?
2 sprites as Terrain one as colour sensing one as looking good , possible? please reply (:
thankyou other people anyways
p.s. i forgot about this thread for a while ...school... weekend is the only time i really have

Offline

 

Board footer