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

#1 2010-09-29 14:11:46

kwickgamer
Scratcher
Registered: 2010-07-13
Posts: 42

distance to color script?

Is there any way to make a distance to color trigger?


Kwickgamer Classic Collection! What is it? find out here!

Offline

 

#2 2010-09-29 17:57:09

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: distance to color script?

At the current time there is no easy way to make a "Distance to Color" effect.

I'm sure there is a work around you can do with different sprites though!


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#3 2010-09-29 18:19:11

Telemachus
Scratcher
Registered: 2010-04-21
Posts: 500+

Re: distance to color script?

Unfortunately, there is no block which completes the task at this time. However, you could make a sensor which continuously scans for colours, and reports the length to get there. A perfect example of this method is found in this project.


http://i54.tinypic.com/10h0fnp.jpg

Offline

 

#4 2010-09-29 23:09:45

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: distance to color script?

Really depends on what ur using it for.  If you're using any which way, do a circular sprite with several colors for the different distances or a sprite that moves really fast, sensing all the area around your sprite.  There is no way to get an exact readout.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#5 2010-09-30 16:38:22

kwickgamer
Scratcher
Registered: 2010-07-13
Posts: 42

Re: distance to color script?

ok, thanks


Kwickgamer Classic Collection! What is it? find out here!

Offline

 

Board footer