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

#1 2010-06-18 09:27:32

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

How can I sense this?

Okay, so I need to sense something and here's what it is:

There's a background made to look like soda, and your supposed to clean it up with the sponge, so when you are clicking the sponge you paint the color of the floor but it looks like you are cleaning it. Now here comes my problem, how do I sense when they are finished?

If you view this and you don't answer you have stalled my biggest and best project ever.  smile <----Smiley Of Evil


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#2 2010-06-18 11:33:49

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: How can I sense this?

Maybe try making a sprite that is 480 x 360 pixels, then having it do "if not touching color (soda color), broadcast [done], else, do whatever"  smile

EDIT: OMAI I made an American spelling :'(

Last edited by Wolfie1996 (2010-06-18 12:15:16)


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#3 2010-06-18 12:12:49

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: How can I sense this?

Wolfie1996 wrote:

Maybe try making a sprite that is 480 x 360 pixels, then having it do "if not touching color (soda color), broadcast [done], else, do whatever"  smile

That should work if you set ghost effect of that 480 x 360 pixel to 100% because when hidden it won't sense and you can only do pen functions on the background.

So like:
When green flaggy clicked
set ghost effect to 100
forever if <not touching color [soda color]>
broadcast [done]

I think that should work...

Last edited by coka (2010-06-18 12:14:50)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#4 2010-06-18 12:23:03

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: How can I sense this?

Neither of those ways are working. And by the way, this is just part of a project. I have the soda background being painted over with the color of the floor, and a black sprite set to 100 ghost effect sensing if it's touching brown. But it's not working.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#5 2010-06-18 12:28:37

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: How can I sense this?

soupoftomato wrote:

Neither of those ways are working. And by the way, this is just part of a project. I have the soda background being painted over with the color of the floor, and a black sprite set to 100 ghost effect sensing if it's touching brown. But it's not working.

Hmm... I'll experiment with it a little bit myself. I'll see if I can figure something out...  hmm


http://i42.tinypic.com/2rot8c2.png

Offline

 

#6 2010-06-18 12:29:50

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: How can I sense this?

Oh - I see! 100% ghost effect can't colour sense - try setting it to 99.9 or something  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#7 2010-06-18 12:35:24

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: How can I sense this?

soupoftomato wrote:

Neither of those ways are working. And by the way, this is just part of a project. I have the soda background being painted over with the color of the floor, and a black sprite set to 100 ghost effect sensing if it's touching brown. But it's not working.

That is really weird. I experimented with it, and it works.  smile  Here is the project. When not touching the pen, it pops, but when it is, it does not. http://scratch.mit.edu/projects/coka/1134303
Maybe you forgot something, but it works!  big_smile

Last edited by coka (2010-06-18 12:37:35)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#8 2010-06-18 12:38:50

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: How can I sense this?

Nevermind, it was due to lack of my own work.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#9 2010-06-18 12:46:41

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: How can I sense this?

coka wrote:

soupoftomato wrote:

Neither of those ways are working. And by the way, this is just part of a project. I have the soda background being painted over with the color of the floor, and a black sprite set to 100 ghost effect sensing if it's touching brown. But it's not working.

That is really weird. I experimented with it, and it works.  smile  Here is the project. When not touching the pen, it pops, but when it is, it does not. http://scratch.mit.edu/projects/coka/1134303
Maybe you forgot something, but it works!  big_smile

I forgot to change the background, show all the other sprites, and other stuff due to complete idiocy on my part.  tongue


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#10 2010-06-18 12:48:58

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: How can I sense this?

soupoftomato wrote:

Nevermind, it was due to lack of my own work.

Awww... Dx I just uploaded this for you... http://scratch.mit.edu/projects/blueshadow/1134319 Mleh, I'll leave it up anyway, in case anyone else wants it...  wink


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#11 2010-06-18 12:51:00

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How can I sense this?

i guess you can  smile

Offline

 

#12 2010-06-18 13:06:34

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: How can I sense this?

Well, I guess this is solved now... closing  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

Board footer