Hiding when its not supposed to

id: 750829

category: Help with Scripts

posts: 3

Im making a painting project, but for some reason the paintbrush is hiding everytime i put my mouse down. I don't have any hide blocks, what did i do wrong:

when this sprite clicked
set pen color to [#d82e8a]
wait (1) secs
show
switch costume to [paintbrush v]
forever
go to [mouse pointer v]
if <mouse down?> then
pen down


else
pen up
end
end


As you can see, there is no hide block. What went wrong? thanks!
BigNate469 BigNate469 loading
Maybe change the hat block (the one at the top) to a
when green flag clicked

Idk if this will work- it might, it might not.

Also, unless this is the only script in your entire project, could you share the project and give us a link so that we can play around with it and figure out what the problem is?
when this sprite clicked
broadcast [paint v]
set pen color to [#63b1d4]
wait (1) secs
show
switch costume to [costume2 v]
forever
go to [mouse-pointer v]
if <mouse down?> then
pen down
else
pen up
end
end

when I receive [paint v]
hide