Discuss Scratch

huyckkid14two
Scratcher
14 posts

Hiding when its not supposed to

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!

when I receive [ plane trip]
forever
say [zzzzzzzzzzzzzzzzzzzzzzzzz] for (2) secs
end
BigNate469
Scratcher
500+ posts

Hiding when its not supposed to

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?

Highlight any part of this signature and press ctrl+shift+down arrow to see the rest of it
forever
if <person asks [what's a signature] :: sensing> then
Redirect to [https://en.scratch-wiki.info/wiki/Signature] :: motion
end
end
Please read the list of Officially Rejected Suggestions before posting a suggestion for Scratch! 100th post
This signature is designed to be as helpful as possible.
View all of the topics you've posted in:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=topics
View all of your posts:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=posts
Forum tips:
Don't post in topics where the latest post is over ~2 months old, unless you have something critical to add. Especially in topics that are several years old- it isn't helpful, and is known as necroposting.
Don't post unrelated things in topics, including questions of your own. Make a new topic for your questions.
You can use the
 [color=color name or hexadecimal value here] and [/color] 
tags to color text.
Lesser-known Scratch URLs:
scratch.pizza (redirects to main page)
https://scratch.mit.edu/projects/PROJECT ID HERE/remixtree (replace “PROJECT ID HERE” with project id number. Shows all the remixes of the project, and the remixes of those projects, and the remixes of those projects, and so on, as a chart. Link currently redirects to one of my projects)
View a larger list at: https://scratch.mit.edu/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch.mit.edu/discuss/topic/762351/
huyckkid14two
Scratcher
14 posts

Hiding when its not supposed to

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

when I receive [ plane trip]
forever
say [zzzzzzzzzzzzzzzzzzzzzzzzz] for (2) secs
end

Powered by DjangoBB