Discuss Scratch

MelonInc
Scratcher
100+ posts

Color Problems

I have at least two problems with the Flash player and/or Scratch 2.0. Both involve color:

In this project, I have a system that plays music based on which color you drag in. I programed it so that when click on a block, it becomes slightly transparent so you can see what is under it and how much of a different color you are covering. The problem is that when you release it, it doesn't return fully to its original color. This I know must be a glitch with the Flash player because it used to work on the Java player, and when you download the project. When it doesn't return to normal, the red playhead can't sense it, making it so you can't hear anything. If anyone has a suggestion to fix it, that's great because I can't figure it out.

Next, I have a Tron project that draws a line behind the “bike” (as it should). This time, the pen changes the shade of the color whenever the bike turns. Sometimes it is a thin, dark line, which is what it needs to be for the sensors to detect it. Other times it is a thicker, light line that appears to be dotted and transparent, which the sensors can't detect and just go right through it. Again, this project worked fine in the old Java player and offline. As far as I'm concerned, this problem can't be fixed by some reprogramming.

If these are duplicate reports, I'm really sorry, I didn't have very much time to go out and check.

Note: I tried Safari and Chrome and neither work.

Last edited by MelonInc (Feb. 9, 2013 03:02:32)



TimothyLawyer
Scratcher
1000+ posts

Color Problems

MelonInc wrote:

In this project, I have a system that plays music based on which color you drag in. I programed it so that when click on a block, it becomes slightly transparent so you can see what is under it and how much of a different color you are covering. The problem is that when you release it, it doesn't return fully to its original color. This I know must be a glitch with the Flash player because it used to work on the Java player, and when you download the project. When it doesn't return to normal, the red playhead can't sense it, making it so you can't hear anything. If anyone has a suggestion to fix it, that's great because I can't figure it out.
Try 'set [ghost] effect to (0)' right before the ‘stamp’ block.

MelonInc wrote:

Next, I have a Tron project that draws a line behind the “bike” (as it should). This time, the pen changes the shade of the color whenever the bike turns. Sometimes it is a thin, dark line, which is what it needs to be for the sensors to detect it. Other times it is a thicker, light line that appears to be dotted and transparent, which the sensors can't detect and just go right through it. Again, this project worked fine in the old Java player and offline. As far as I'm concerned, this problem can't be fixed by some reprogramming.
One thing to try may be using the number of the color instead of the dropper. This way you can be sure the color comparison is exact.

Is the change in the trail line part of your code or is this due to the player?

BeetleBlocks, WatercolorBot, and Turtle Art
Hover over a name or label to translate into current language
When Earth was… Purple?

☂️




MelonInc
Scratcher
100+ posts

Color Problems

TimothyLawyer wrote:

Try 'set effect to (0)' right before the ‘stamp’ block.
That seems to have worked. Thanks!

TimothyLawyer wrote:

One thing to try may be using the number of the color instead of the dropper. This way you can be sure the color comparison is exact.
How can I determine the number of the color? Is there a sensor block, or do I just have to guess?

TimothyLawyer wrote:

Is the change in the trail line part of your code or is this due to the player?
I believe it is due to the player.

Thanks for your help!


TimothyLawyer
Scratcher
1000+ posts

Color Problems

MelonInc wrote:

How can I determine the number of the color? Is there a sensor block, or do I just have to guess?
Not sure. Scratchers, does anyone know how to do this?

MelonInc wrote:

Thanks for your help!
You're welcome!

BeetleBlocks, WatercolorBot, and Turtle Art
Hover over a name or label to translate into current language
When Earth was… Purple?

☂️




MelonInc
Scratcher
100+ posts

Color Problems

Ok, I fixed both problems! For the Tron project I made it so it sense both “versions” of the color. I just used the color picker thing because it's easier. Thanks for your help with the music project!


Powered by DjangoBB