Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Troubles with the pen tool
- brunodwimba
-
36 posts
Troubles with the pen tool
When I want to make this script:
when green flag clickedIf the colours are made with pen, it says the conditional is false, even though the two colours are touching. Can someone help me?
forever
if <color [#ffff00] is touching [#000000] ?> then
Do stuff :: custom
end
end
- SimpleScratch
-
500+ posts
Troubles with the pen tool
Just tried it out - drew a line with pen - when I move my cat sprite over the line it seems to work OK for me (I'm not using same colours as you)
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/302426129/
win 10/chrome
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/302426129/
win 10/chrome
Last edited by SimpleScratch (April 13, 2019 12:05:17)
- CrazyScoop
-
100+ posts
Troubles with the pen tool
Edited because my trouble was fixed. 

Last edited by CrazyScoop (May 11, 2019 16:41:38)
- 14152cool
-
100+ posts
Troubles with the pen tool
make your own topic, please. My browser / operating system: Windows NT 10.0, Chrome 73.0.3683.103, No Flash version detected
Hello! With the pen extension, I decided to make an “Amount of Ink”. When it draws, it will change it by -0.1, but it sets to -0.1 then changes it by -0.1, is this a bug? Please help me!
- brunodwimba
-
36 posts
Troubles with the pen tool
My problem is that I want to detect when two colours drawn by pen overlap, not when a sprite overlaps a line. Just tried it out - drew a line with pen - when I move my cat sprite over the line it seems to work OK for me (I'm not using same colours as you)
- CrazyScoop
-
100+ posts
Troubles with the pen tool
make your own topic, please. My browser / operating system: Windows NT 10.0, Chrome 73.0.3683.103, No Flash version detected
Hello! With the pen extension, I decided to make an “Amount of Ink”. When it draws, it will change it by -0.1, but it sets to -0.1 then changes it by -0.1, is this a bug? Please help me!
Okay!
- banana439monkey
-
1000+ posts
Troubles with the pen tool
CR when moving 25 pixels with one colour, switching and moving 25 more pixels, totalling 50. This “bug” implies the sensing block is for sprites only.
Banana
Banana
- 14152cool
-
100+ posts
Troubles with the pen tool
the first color has to be on the sprite.
not bug, feature.
not bug, feature.
- banana439monkey
-
1000+ posts
Troubles with the pen tool
Hmm, that therefore possibly means the block name is misleading. I've never seen anything like that. the first color has to be on the sprite.
not bug, feature.
Banana
- brunodwimba
-
36 posts
Troubles with the pen tool
My browser / operating system: Windows 7, Chrome 74.0.3729.131, No Flash version detected
When I draw two lines and use this block:
When I draw two lines and use this block:
if <color [#FFFFFF] is touching [#FF0000] ?> thenIt returns false, I don't know why.
Do stuff ::grey
end
- hedgehog_blue
-
1000+ posts
Troubles with the pen tool
Actually, it looks like they just forgot that they already made a topic about this a month ago and so they made a new one that is the same. Ironically the same name.
- cheddargirl
-
1000+ posts
Troubles with the pen tool
Mod thread merging powers activated!Actually, it looks like they just forgot that they already made a topic about this a month ago and so they made a new one that is the same. Ironically the same name.
- Scratch-Minion
-
1000+ posts
Troubles with the pen tool
The Scratch Wiki describes the Color()is_Touching() block: https://en.scratch-wiki.info/wiki/Color_()_is_Touching_()%3F_(block)
“The block checks whether a color on its sprite is touching another color”. If it is, the block returns ‘true’.
So the block is defined to check if the first colour which must be part of a sprite is touching a second colour which may or may not be part of any sprite.
The block is not designed to check if two lines drawn in Pen are touching and will not work in this case.
Scratch stores the colour of each pixel on the stage.
If you draw on a pixel on the stage with a new colour using Pen, the colour of that pixel will be updated.
Then only the second colour exists for that pixel.
ie. the colours do not touch as the previous colour has been replaced in the Pen layer.
Scratch would detect if two lines that are differently coloured sprites are touching as they are stored in different layers.
“The block checks whether a color on its sprite is touching another color”. If it is, the block returns ‘true’.
So the block is defined to check if the first colour which must be part of a sprite is touching a second colour which may or may not be part of any sprite.
The block is not designed to check if two lines drawn in Pen are touching and will not work in this case.
Scratch stores the colour of each pixel on the stage.
If you draw on a pixel on the stage with a new colour using Pen, the colour of that pixel will be updated.
Then only the second colour exists for that pixel.
ie. the colours do not touch as the previous colour has been replaced in the Pen layer.
Scratch would detect if two lines that are differently coloured sprites are touching as they are stored in different layers.
- bigmaxerpro123
-
1 post
Troubles with the pen tool
The Scratch Wiki describes the Color()is_Touching() block: https://en.scratch-wiki.info/wiki/Color_()_is_Touching_()%3F_(block)
“The block checks whether a color on its sprite is touching another color”. If it is, the block returns ‘true’.
So the block is defined to check if the first colour which must be part of a sprite is touching a second colour which may or may not be part of any sprite.
The block is not designed to check if two lines drawn in Pen are touching and will not work in this case.
Scratch stores the colour of each pixel on the stage.
If you draw on a pixel on the stage with a new colour using Pen, the colour of that pixel will be updated.
Then only the second colour exists for that pixel.
ie. the colours do not touch as the previous colour has been replaced in the Pen layer.
Scratch would detect if two lines that are differently coloured sprites are touching as they are stored in different layers.
..Scratch Movie.. ..Scratch Memes.. Scratch Cat Dash ..FPC? Not Me!.. Scratch DictionaryAnimal Hangman
Studios: 3D Tutorials, Polyhedra, 1 Line Challenge, Mandelbrot Art Challenge, Op Art Challenge
“The block checks whether a color on its sprite is touching another color”. If it is, the block returns ‘true’.
So the block is defined to check if the first colour which must be part of a sprite is touching a second colour which may or may not be part of any sprite.
The block is not designed to check if two lines drawn in Pen are touching and will not work in this case.
Scratch stores the colour of each pixel on the stage.
If you draw on a pixel on the stage with a new colour using Pen, the colour of that pixel will be updated.
Then only the second colour exists for that pixel.
ie. the colours do not touch as the previous colour has been replaced in the Pen layer.
Scratch would detect if two lines that are differently coloured sprites are touching as they are stored in different layers.
..Scratch Movie.. ..Scratch Memes.. Scratch Cat Dash ..FPC? Not Me!.. Scratch DictionaryAnimal Hangman
Studios: 3D Tutorials, Polyhedra, 1 Line Challenge, Mandelbrot Art Challenge, Op Art Challenge
- egg-cellent123
-
36 posts
Troubles with the pen tool
Thank you for the detailed post, but please don't post on old topics. The touching color blocks are also known for being clunky and unreliable (from my eggsperience). -snip-
- Discussion Forums
- » Bugs and Glitches
-
» Troubles with the pen tool