Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » <mouse down?> problem
- mekizmo
- Scratcher
51 posts
<mouse down?> problem
This seems to be a minor glitch, found by a friend of mine when she helped debugging my project. It affects both the offline and the online player. After clicking the green flag, the value of
Update: Here's a simple demonstration.
<mouse down?>remains TRUE until the mouse pointer is moved away. Although I suppose not moving the mouse after starting a project is something that rarely happens, the problem seems to affect all projects which start with a title screen and wait for the user's second click to actually start the project, or wait for an initial mouse click for any other reason.
Update: Here's a simple demonstration.
Last edited by mekizmo (March 22, 2015 00:01:05)
- ShinySkarmory227
- Scratcher
100+ posts
<mouse down?> problem
It's just the nature of the block, if you need a fix:
When green flag clicked(Sorry if it doesn't work, placing the block codes doesn't work on IPad, so I have to type it.)
Wait [1] seconds
If <mouse down?> then
Broadcast start
- ShinySkarmory227
- Scratcher
100+ posts
<mouse down?> problem
It's just how the block works. You can always put a warning. If they don't read it, then too bad for them. It really can't be fixed. Why would it be the nature of the block?
Your code doesn't fix the general problem. The user may leave the mouse pointer over the green flag for a longer period of time (e.g. because she wants to use the keyboard with both hands).
- Sonickyle
- Scratcher
1000+ posts
<mouse down?> problem
That block reports if the mouse is down anywhere on the Scratch program. Even if you're dragging scripts around in See Inside mode it still reports true.
As far as I'm aware it's intentional.
You could use,
As far as I'm aware it's intentional.
You could use,
when green flag clicked
wait until <not <mouse down?>> //Waits until the user has let go of the left mouse button.
if <mouse down?> then
...
end
No I don't make projects anymore. I left some time ago.
I only check the forums every now and then, but other than that consider me retired.
I only check the forums every now and then, but other than that consider me retired.
- drmcw
- Scratcher
1000+ posts
<mouse down?> problem
Oh thanks. Sorry then. :-) It wasn't on the official list. Been reported before.
Doesn't really matter but maybe it will maybe it won't?
- mxf26
- New to Scratch
1 post
<mouse down?> problem
when green flag clicked
wait until <not <mouse down?>>
if <> then
if <mouse down?> then
end
end
Last edited by mxf26 (May 18, 2024 21:41:09)
- Discussion Forums
- » Bugs and Glitches
- » <mouse down?> problem