Discuss Scratch
- Discussion Forums
- » Suggestions
- » "[] mouse pointer" block
- Seth_Zaw
-
100+ posts
"[] mouse pointer" block
These blocks should be added to Scratch:
Basically, it makes the mouse pointer hide or disappear, like sprites. It would be useful for a hard game. Please add!
- StevenTheSquare
-
100+ posts
"[] mouse pointer" block
The mouse pointer isn't a part of the Scratch site though, it's a part of your computer. Scratch has no control over that, I don't think.
- minor-edit
-
500+ posts
"[] mouse pointer" block
I am on a tablet and there is no mouse pointer.
- PkmnQ
-
1000+ posts
"[] mouse pointer" block
Apparently, you can use CSS to hide it, but I'm not sure if it'll work here. The mouse pointer isn't a part of the Scratch site though, it's a part of your computer. Scratch has no control over that, I don't think.
- CuriousGamer
-
60 posts
"[] mouse pointer" block
There's an inbuilt javascript function to hide the mouse cursor:
I'm not entirely sure how it could be defined, but it should work as follows:
document.getElementByTagName('canvas').style.cursor = ‘none’;It works by getting the <canvas> tag from the HTML (where is project is on show) and sets the CSS to hide the mouse.
I'm not entirely sure how it could be defined, but it should work as follows:
if (mouseOnShow) {
document.getElementByTagName('canvas').style.cursor = ‘auto’;
// auto basically means set the mouse to show it's default state
} else {
document.getElementByTagName('canvas').style.cursor = ‘none’;
// none basically means make the mouse invisible
};
- Za-Chary
-
1000+ posts
"[] mouse pointer" block
It looks like this is a duplicate topic of this one over here so I'll close it to keep the conversation all in one place.
Feel free to continue the discussion in the link above.
Feel free to continue the discussion in the link above.
- Discussion Forums
- » Suggestions
-
» "[] mouse pointer" block