Discuss Scratch
- Discussion Forums
- » Suggestions
- » New Code Idea
- SuperScratchMaker001
- Scratcher
5 posts
New Code Idea
I think there has to be a Sensing block for “when sprite clicked” because if I add a “touching mouse-pointer? and mouse down” block to an “if then” block inside a “forever” block to a sprite, the score variable will go up in the thousands instantly when I hold the mouse down on the sprite. This basically breaks the game I'm making and defeats the challenge.
Last edited by SuperScratchMaker001 (June 29, 2019 03:10:24)
- Za-Chary
- Scratcher
1000+ posts
New Code Idea
You can do something like this:
forever
wait until <<mouse down?> and <touching [mouse-pointer v] ?>>
...
wait until <not <mouse down?>>
end
This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
I was a Scratch Team member from May 10th 2019 to October 29th 2021.
my notebook | scratch team essay | accessibility essay
- Discussion Forums
- » Suggestions
- » New Code Idea