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

#1 2008-02-13 06:04:10

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Color Sensing Issue With The Java Player

I just tried creating a project which relies on color sensing and noticed that while it does behave correctly in Scratch, it sometimes fails in the online version.

it's an attempt to let a sprite bounce off irregular surfaces:
http://scratch.mit.edu/projects/Jens/98418

It involves rotating a sprite until colored "sensor" dots touch a surface color (black) to approximate the surface's slope. Sometimes the black surface color seems to be sensed by the sprite despite it actually not touching the sensor. I also noticed that this bug appears more frequently the slower the sprite is moved or rotated (Try setting the bouncer's speed to 1).

Looking closely at the sensor dots in the Java player I sometimes seem to make out a dark "mask" around sprites. I wonder if  that may be part of the problem.

First I thought it might be related to image compression, so I tried uploading with image compression turned off - no luck. Then I remembered that there is a known bug in version 1.2.1 related to image compression, which cannot be avoided by unchecking image compression:

http://scratch.mit.edu/forums/viewtopic.php?pid=14308#p14308

Hence I did as John suggested in that post and switched to v.1.1 to upload my project. But I'm still encountering the same problem, albeit less often than before.

Any advice?


Jens Mönig

Offline

 

#2 2008-02-13 10:56:46

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Color Sensing Issue With The Java Player

I have also noticed a dark edge around some sprites when I have uploaded to the web.  This is particularly noticable on white sprites (such as the eraser sprite in my Tech Paint project).


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2010-04-04 05:06:07

tianabannana
Scratcher
Registered: 2009-10-21
Posts: 3

Re: Color Sensing Issue With The Java Player

[blocks} i w\nt to wal kup stairs is it possible

Offline

 

#4 2010-04-04 06:18:09

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Color Sensing Issue With The Java Player

tianabannana wrote:

[blocks} i w\nt to wal kup stairs is it possible

Hi tianabannana - That's an interesting question!  But it doesn't seem to have anything to do with the topic that you've posted it on (Color Sensing Issue With The Java Player).  In the future, please use the "Post new topic" link in the upper right-hand corner of the main forum page to make your own topic.  Also, you probably should post a question like that in the "All About Scratch" forum as "Troubleshooting" is for reporting problems with Scratch or the website  smile

Getting to your question about walking up stairs, I'm guessing that you want to do an animation of somebody walking up stairs.  Probably the simplest way would be to take a sprite that has a walking cycle in its costumes (like the Scratch Cat) and set up a Forever loop with the Next Costume and a Wait block so that it looks like it's walking, then just change the sprite direction so it is pointing to the top of the stairs and use a Glide block to move it up the stairs.  It wouldn't look quite right but it would probably get the idea across.

Another (harder) method would be to build a set of costumes that showed the legs going up stairs and then try to synchronize them with a staircase.  I hope that helps...maybe somebody else on the forums has an example they could share  smile


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2010-05-04 19:55:32

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: Color Sensing Issue With The Java Player

I heard somebody say something about an online/offline detector that involved the 200 online/360 offline colors. Does anyone know the link to it?


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#6 2010-05-05 06:16:23

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Color Sensing Issue With The Java Player

Nope. They are two different things. Anyway, that is already fixed.

By the way, who bumped this topic?  tongue

Offline

 

Board footer