Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Pen won't change colour D:
- lioness_outlander
-
Scratcher
64 posts
Pen won't change colour D:
when green flag clicked
forever
if <<mouse down?> and <touching [y v] ?>> then
set pen color to [#d6b00a]
end
end
I am using this script for a newer project I made and I am trying to change the pen colour.It doesn't seem to be working though
can I have a smudge of help please?
Here is a link~ https://scratch.mit.edu/projects/168123447/#player
Last edited by lioness_outlander (July 6, 2017 18:05:22)
- dual_creator43
-
Scratcher
1000+ posts
Pen won't change colour D:
If the pen is already that color, it won't change. However, if it's a different color, I don't know why it's not changing,when green flag clicked
forever
if <<mouse down?> and <touching [y v] ?>> then
set pen color to [#d6b00a]
end
end
I am using this script for a newer project I made and I am trying to change the pen colour.It doesn't seem to be working though
can I have a smudge of help please?
Here is a link~ https://scratch.mit.edu/projects/168123447/#player
- lioness_outlander
-
Scratcher
64 posts
Pen won't change colour D:
It is a different colour so I also have no clue why it is not changing :3If the pen is already that color, it won't change. However, if it's a different color, I don't know why it's not changing,when green flag clicked
forever
if <<mouse down?> and <touching [y v] ?>> then
set pen color to [#d6b00a]
end
end
I am using this script for a newer project I made and I am trying to change the pen colour.It doesn't seem to be working though
can I have a smudge of help please?
Here is a link~ https://scratch.mit.edu/projects/168123447/#player
- hermione510
-
Scratcher
100+ posts
Pen won't change colour D:
I believe it's because the sprite that the code is under is not touching “y”. Therefore, it doesn't register that you are clicking on it. You may want to try using a “When this Sprite Clicked” code and put it under the “y” sprite. It's simple, but I'll put it anyways:
(I don't know how you got the color to change to yellow when you put the coding in your message, but you get my point
)
Edit: Thanks pokemonsam2008 for telling me how to get the block to be yellow
(I don't know how you got the color to change to yellow when you put the coding in your message, but you get my point
)Edit: Thanks pokemonsam2008 for telling me how to get the block to be yellow

when this sprite clicked
set pen color to [#FFF000]
Last edited by hermione510 (July 7, 2017 15:50:27)
- pokemonsam2008
-
Scratcher
58 posts
Pen won't change colour D:
I believe it's because the sprite that the code is under is not touching “y”. Therefore, it doesn't register that you are clicking on it. You may want to try using a “When this Sprite Clicked” code and put it under the “y” sprite. It's simple, but I'll put it anyways:I think you do "
(I don't know how you got the color to change to yellow when you put the coding in your message, but you get my point)
set pen color to [#FFF000]" (FFF000)
- cool_creator101
-
Scratcher
6 posts
Pen won't change colour D:
when green flag clicked
pen down
forever
if <<mouse down?>> then
change pen color by (10)
end
end
and it was not changing pen colour...
plzz fix this bug...
these scripts were tried on scratch's official site and version was scratch 3

Last edited by cool_creator101 (Aug. 26, 2021 15:17:40)
- orangetheory
-
Scratcher
500+ posts
Pen won't change colour D:
I think you are getting confused between the mouse pointer touching the y sprite and the actual sprite touching the y sprite. the “if touching ___” block is only used for the sprite, not the mouse pointer. Instead, in the y sprite, do
when green flag clicked
forever
if <touching [mouse pointer v]> then
if <mouse down?>
set pen color to [..]
end
end
end
- cool_creator101
-
Scratcher
6 posts
Pen won't change colour D:
I think you are getting confused between the mouse pointer touching the y sprite and the actual sprite touching the y sprite. the “if touching ___” block is only used for the sprite, not the mouse pointer. Instead, in the y sprite, docan you tell me how do i make this script run or this is a bug on scratch sitewhen green flag clicked
forever
if <touching [mouse pointer v]> then
if <mouse down?>
set pen color to [..]
end
end
end
when green flag clicked
pen down
forever
if <<mouse down?>> then
change pen color by (10)
end
end
and it was not changing pen colour...
plzz fix this bug...
these scripts were tried on scratch's official site and version was scratch 3

Last edited by cool_creator101 (Aug. 26, 2021 15:19:46)
- orangetheory
-
Scratcher
500+ posts
Pen won't change colour D:
It's not working, obviously, since you need something to activate it.I think you are getting confused between the mouse pointer touching the y sprite and the actual sprite touching the y sprite. the “if touching ___” block is only used for the sprite, not the mouse pointer. Instead, in the y sprite, docan you tell me how do i make this script run or this is a bug on scratch sitewhen green flag clicked
forever
if <touching [mouse pointer v]> then
if <mouse down?>
set pen color to [..]
end
end
endwhen green flag clicked
pen down
forever
if <<mouse down?>> then
change pen color by (10)
end
end
and it was not changing pen colour...
plzz fix this bug...
these scripts were tried on scratch's official site and version was scratch 3
And please create your OWN topic.
Last edited by orangetheory (Aug. 26, 2021 15:22:34)
- ButterflyWings22
-
Scratcher
100+ posts
Pen won't change colour D:
please make your own topic about thatI think you are getting confused between the mouse pointer touching the y sprite and the actual sprite touching the y sprite. the “if touching ___” block is only used for the sprite, not the mouse pointer. Instead, in the y sprite, docan you tell me how do i make this script run or this is a bug on scratch sitewhen green flag clicked
forever
if <touching [mouse pointer v]> then
if <mouse down?>
set pen color to [..]
end
end
endwhen green flag clicked
pen down
forever
if <<mouse down?>> then
change pen color by (10)
end
end
and it was not changing pen colour...
plzz fix this bug...
these scripts were tried on scratch's official site and version was scratch 3
Last edited by ButterflyWings22 (Aug. 26, 2021 17:14:56)
- cool_creator101
-
Scratcher
6 posts
Pen won't change colour D:
please make your own topic about thatI think you are getting confused between the mouse pointer touching the y sprite and the actual sprite touching the y sprite. the “if touching ___” block is only used for the sprite, not the mouse pointer. Instead, in the y sprite, docan you tell me how do i make this script run or this is a bug on scratch sitewhen green flag clicked
forever
if <touching [mouse pointer v]> then
if <mouse down?>
set pen color to [..]
end
end
endwhen green flag clicked
pen down
forever
go to [ mose pointer]
if <<mouse down?>> then
change pen color by (10)
end
end
and it was not changing pen colour...
plzz fix this bug...
these scripts were tried on scratch's official site and version was scratch 3
- cool_creator101
-
Scratcher
6 posts
Pen won't change colour D:
when green flag clicked is activating that and I know it must be a scratch bugIt's not working, obviously, since you need something to activate it.I think you are getting confused between the mouse pointer touching the y sprite and the actual sprite touching the y sprite. the “if touching ___” block is only used for the sprite, not the mouse pointer. Instead, in the y sprite, docan you tell me how do i make this script run or this is a bug on scratch sitewhen green flag clicked
forever
if <touching [mouse pointer v]> then
if <mouse down?>
set pen color to [..]
end
end
endwhen green flag clicked
pen down
forever
if <<mouse down?>> then
change pen color by (10)
end
end
and it was not changing pen colour...
plzz fix this bug...
these scripts were tried on scratch's official site and version was scratch 3
And please create your OWN topic.
- Discussion Forums
- » Help with Scripts
-
» Pen won't change colour D: