Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Change Color Effect by 25
- mazed651
-
2 posts
Change Color Effect by 25
Hello,
I am changing the Sprite color using “Change Color Effect by 25” function, and it is working. Next I am using “If then” and “touching color –” function to perform an action based on the changed color. When I used the “Change Color Effect by 25” function it is changing the sprite color but don't know the exact color to use in “touching color –” function.
Example: the initial sprite color is red(for example), and using the “Change Color Effect by 25”, the sprite is changing to “Green” but this green could be any green.
Any help would be appreciated.
Thanks,
Mazed
I am changing the Sprite color using “Change Color Effect by 25” function, and it is working. Next I am using “If then” and “touching color –” function to perform an action based on the changed color. When I used the “Change Color Effect by 25” function it is changing the sprite color but don't know the exact color to use in “touching color –” function.
Example: the initial sprite color is red(for example), and using the “Change Color Effect by 25”, the sprite is changing to “Green” but this green could be any green.
Any help would be appreciated.
Thanks,
Mazed
- The_Grits
-
1000+ posts
Change Color Effect by 25
This would fit better in the ‘Help with Scripts’ forum, I'll ask a mod to move the topic for you. Hello,
I am changing the Sprite color using “Change Color Effect by 25” function, and it is working. Next I am using “If then” and “touching color –” function to perform an action based on the changed color. When I used the “Change Color Effect by 25” function it is changing the sprite color but don't know the exact color to use in “touching color –” function.
Example: the initial sprite color is red(for example), and using the “Change Color Effect by 25”, the sprite is changing to “Green” but this green could be any green.
Any help would be appreciated.
Thanks,
Mazed

- footsocktoe
-
1000+ posts
Change Color Effect by 25
You use the eyedropper associated with the touching color block to determine the color.
Run the script (changing it if you have to) so that the sprite is on the stage with the new color. Now touch the “if color =” square of the touching color block and then touch the new color on the stage so that it is now in the “if touching color” block.
Run the script (changing it if you have to) so that the sprite is on the stage with the new color. Now touch the “if color =” square of the touching color block and then touch the new color on the stage so that it is now in the “if touching color” block.
- BKFighter
-
1000+ posts
Change Color Effect by 25
The best solution (unless I'm missing some block…) is to do something like this:
So just change the variable color var instead of the effect block.
- drmcw
-
1000+ posts
Change Color Effect by 25
The colour effect block uses HSL colours whereas the touching colour block uses RGB. Why not just use
<t
<t
? Although slow it's still quicker than touching colour.
- asivi
-
1000+ posts
Change Color Effect by 25
Hello,
I am changing the Sprite color using “Change Color Effect by 25” function, and it is working. Next I am using “If then” and “touching color –” function to perform an action based on the changed color. When I used the “Change Color Effect by 25” function it is changing the sprite color but don't know the exact color to use in “touching color –” function.
Example: the initial sprite color is red(for example), and using the “Change Color Effect by 25”, the sprite is changing to “Green” but this green could be any green.
Any help would be appreciated.
Thanks,
Mazed
Then based in
The best solution (unless I'm missing some block…) is to do something like this:So just change the variable color var instead of the effect block.
and
The colour effect block uses HSL colours whereas the touching colour block uses RGB. Why not just use
<t? Although slow it's still quicker than touching colour.
you may to use
Greets.
- cs300929
-
100+ posts
Change Color Effect by 25
Guys, you've got this all worng. It's quite simple.
- deck26
-
1000+ posts
Change Color Effect by 25
I don't think you've understood the question. Guys, you've got this all worng. It's quite simple.
- Discussion Forums
- » Help with Scripts
-
» Change Color Effect by 25