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

#1 2012-06-04 17:19:00

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Errors in color sensing

I'm making a project and I discovered a bug: if Sprite1's colors are changed to dark gray and that sprite is placed in front of the color black on the Stage, the block

<color [#ffffff] is touching [#000000]?>
reports true. Vice versa, it reports false.


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#2 2012-06-04 19:05:00

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Errors in color sensing

Also, color sensing fails when single stepping is on. Can anyone explain this bug? Anyone?


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#3 2012-07-16 14:53:13

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Errors in color sensing

Anyone?!!


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#4 2012-07-16 14:56:48

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Errors in color sensing

Oh well, it isn't a massive problem.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#5 2012-07-16 15:07:57

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Errors in color sensing

Wes64 wrote:

Oh well, it is a massive problem.

*coughcough*


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&amp;display=small

Offline

 

#6 2012-07-16 15:22:46

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Errors in color sensing

SciTecCf wrote:

Wes64 wrote:

Oh well, it is a massive problem.

*coughcough*

-_- explaining WHY would be nice, rather than just changing things... How do you even define a massive problem?


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#7 2012-07-16 15:48:53

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Errors in color sensing

Wes64 wrote:

SciTecCf wrote:

Wes64 wrote:

Oh well, it is a massive problem.

*coughcough*

-_- explaining WHY would be nice, rather than just changing things... How do you even define a massive problem?

What if somebody doesn't know this and turn on single stepping, and then their project doesn't work, and then they struggle forever on a glitch-free project?


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&amp;display=small

Offline

 

#8 2012-07-16 15:57:13

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Errors in color sensing

SciTecCf wrote:

Wes64 wrote:

SciTecCf wrote:


*coughcough*

-_- explaining WHY would be nice, rather than just changing things... How do you even define a massive problem?

What if somebody doesn't know this and turn on single stepping, and then their project doesn't work, and then they struggle forever on a glitch-free project?

if I was struggling on a project, the first thing I would do would be to turn off single stepping.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#9 2012-07-16 16:02:35

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Errors in color sensing

Color sensing is hopelessly faulty. I made a topic about it in HWS for Luxturna, you can check it out if you want, it's sort of a tutorial.

Offline

 

#10 2012-07-16 16:03:38

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Errors in color sensing

Wes64 wrote:

SciTecCf wrote:

Wes64 wrote:


-_- explaining WHY would be nice, rather than just changing things... How do you even define a massive problem?

What if somebody doesn't know this and turn on single stepping, and then their project doesn't work, and then they struggle forever on a glitch-free project?

if I was struggling on a project, the first thing I would do would be to turn off single stepping.

If a struggle on a project, I immediatly turn ON single stepping to see what is not working ("oh, that boolean causes the script to skip the else section").


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#11 2012-07-16 16:17:31

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: Errors in color sensing

color sensing is the best way to make a platformer!

but anyway,  I couldn't duplicate your bug. I used a solid gray sprite, with the darkest shade of gray in the custom color picker. See (link to project)

what I think is wrong: you have other colors in your sprite including white and those report "true" for your block.


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

Board footer