Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Fullscreen Detector
- QWERTZ987
-
Scratcher
6 posts
Fullscreen Detector
Hi Everyone! I have a slow but important question:
Is it possible to make a fullscreen detector?
Thanks
- QWERTZ987
Is it possible to make a fullscreen detector?
Thanks
- QWERTZ987
- The_5th_Scratcher
-
Scratcher
100+ posts
Fullscreen Detector
This question would be more appropriate in the Help with Scripts forum
- Austinato
-
Scratcher
1000+ posts
Fullscreen Detector
Some users create “like detectors,” which are sprites that are off-screen where the like button would be. All it takes is for someone to hover their mouse above the like button for these detectors to activate. Maybe you can do the same for the full-screen button.
Last edited by Austinato (May 19, 2021 15:25:27)
- Maximouse
-
Scratcher
1000+ posts
Fullscreen Detector
Why do you need to detect full screen? If it's to adjust the behavior of the project, then using a button detector won't work because those are unreliable.
- imfh
-
Scratcher
1000+ posts
Fullscreen Detector
Yes, here's one I made: https://scratch.mit.edu/projects/354261976/
The project linked above starts by detecting when you touch the fullscreen button. Then, it detects if the mouse rapidly moves out of the fullscreen button, eg. because you hit fullscreen and the mouse is in a new spot relative to the stage. Finally, it determines if you are in fullscreen based on where the mouse ended up.
Note that the detector isn't foolproof and doesn't work on mobile (except possibly with certain browsers/devices). I believe there was a way you could detect fullscreen based on the touching color block and how Scratch handles antialiasing, but I don't think it still works.
The project linked above starts by detecting when you touch the fullscreen button. Then, it detects if the mouse rapidly moves out of the fullscreen button, eg. because you hit fullscreen and the mouse is in a new spot relative to the stage. Finally, it determines if you are in fullscreen based on where the mouse ended up.
Note that the detector isn't foolproof and doesn't work on mobile (except possibly with certain browsers/devices). I believe there was a way you could detect fullscreen based on the touching color block and how Scratch handles antialiasing, but I don't think it still works.
- Maximouse
-
Scratcher
1000+ posts
Fullscreen Detector
I believe there was a way you could detect fullscreen based on the touching color block and how Scratch handles antialiasing, but I don't think it still works.It would probably need to be implemented slightly different in Scratch 3.0.
- han614698
-
Scratcher
1000+ posts
Fullscreen Detector
Yep, I made one just for this.
https://scratch.mit.edu/projects/534888190/
It detects the flag as well.
https://scratch.mit.edu/projects/534888190/
It detects the flag as well.
- -Qlec-
-
Scratcher
100+ posts
Fullscreen Detector
Yes, here's one I made: https://scratch.mit.edu/projects/354261976/This does work, but if I go to this page then it won't know that I'm already in fullscreen.
The project linked above starts by detecting when you touch the fullscreen button. Then, it detects if the mouse rapidly moves out of the fullscreen button, eg. because you hit fullscreen and the mouse is in a new spot relative to the stage. Finally, it determines if you are in fullscreen based on where the mouse ended up.
Note that the detector isn't foolproof and doesn't work on mobile (except possibly with certain browsers/devices). I believe there was a way you could detect fullscreen based on the touching color block and how Scratch handles antialiasing, but I don't think it still works.
- imfh
-
Scratcher
1000+ posts
Fullscreen Detector
Like I said, not foolproof. It can only detect the full screen status changing, so if the project isn’t running and you go into fullscreen or embedded or whatever, it won’t know until you hit fullscreen again.Yes, here's one I made: https://scratch.mit.edu/projects/354261976/This does work, but if I go to this page then it won't know that I'm already in fullscreen.
The project linked above starts by detecting when you touch the fullscreen button. Then, it detects if the mouse rapidly moves out of the fullscreen button, eg. because you hit fullscreen and the mouse is in a new spot relative to the stage. Finally, it determines if you are in fullscreen based on where the mouse ended up.
Note that the detector isn't foolproof and doesn't work on mobile (except possibly with certain browsers/devices). I believe there was a way you could detect fullscreen based on the touching color block and how Scratch handles antialiasing, but I don't think it still works.
- withermicci19
-
Scratcher
100+ posts
Fullscreen Detector
I'm going to report this to be moved to Help With Scripts, this is less a question about scratch in general
- jferriolo1
-
Scratcher
11 posts
Fullscreen Detector
Some users create “like detectors,” which are sprites that are off-screen where the like button would be. All it takes is for someone to hover their mouse above the like button for these detectors to activate. Maybe you can do the same for the full-screen button.
I will definitely try this. thanks!
when green flag clicked
forever
define
end
- Discussion Forums
- » Questions about Scratch
-
» Fullscreen Detector
