Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Fullscreen detector
- The-king-Stpro1
-
84 posts
Fullscreen detector
I'm making a game that might include jumpscares. I want to make a script that can detect if the user DOES put fullscreen and gives them a warning about the jumpscares. I thought of asking griffpatch but there is a chance he won't respond. Any tips?
- dude341
-
1000+ posts
Fullscreen detector
No, BoltBait made one. There is not but you can ask for one here…
https://scratch.mit.edu/discuss/1/
- The-king-Stpro1
-
84 posts
Fullscreen detector
Where is it?No, BoltBait made one. There is not but you can ask for one here…
https://scratch.mit.edu/discuss/1/
- TheLogFather
-
1000+ posts
Fullscreen detector
Boltbait's detector requires user-interaction (which may be OK for your purposes). And there's another method I can think of that would allow detection with user-interaction (using a specific Scratch glitch that shows different behaviour in fullscreen vs normal).
But I'm not aware of a reliable way to do ‘instantaneous’ fullscreen detection from within a project while it is running (i.e. to check the state *right now* without any user interaction).
There used to be some minor differences in pixel-aliasing for fullscreen vs normal, so colour touching could be used to tell which. I think they're all fixed now…? (Not properly tested, though.)
I'd be interested to know if anyone else has any ideas how it might be possible to create such an ‘instantaneous’ fullscreen test?
But I'm not aware of a reliable way to do ‘instantaneous’ fullscreen detection from within a project while it is running (i.e. to check the state *right now* without any user interaction).
There used to be some minor differences in pixel-aliasing for fullscreen vs normal, so colour touching could be used to tell which. I think they're all fixed now…? (Not properly tested, though.)
I'd be interested to know if anyone else has any ideas how it might be possible to create such an ‘instantaneous’ fullscreen test?
Last edited by TheLogFather (Aug. 5, 2015 16:33:17)
- The-king-Stpro1
-
84 posts
Fullscreen detector
Thank you log father! Boltbait's detector requires user-interaction (which may be OK for your purposes). And there's another method I can think of that would allow detection with user-interaction (using a specific Scratch glitch that shows different behaviour in fullscreen vs normal).
But I'm not aware of a reliable way to do ‘instantaneous’ fullscreen detection from within a project while it is running (i.e. to check the state *right now* without any user interaction).
There used to be some minor differences in pixel-aliasing for fullscreen vs normal, so colour touching could be used to tell which. I think they're all fixed now…? (Not properly tested, though.)
I'd be interested to know if anyone else has any ideas how it might be possible to create such an ‘instantaneous’ fullscreen test?
I was just wondering, is it possible that the x and y position can be used for something like this. BoltBait's detector is used WHENEVER someone preses the green flag. I want to do it during the game as well
Last edited by The-king-Stpro1 (Aug. 5, 2015 16:38:52)
- dude341
-
1000+ posts
Fullscreen detector
How about detect it at the start, then display it later.Thank you log father! Boltbait's detector requires user-interaction (which may be OK for your purposes). And there's another method I can think of that would allow detection with user-interaction (using a specific Scratch glitch that shows different behaviour in fullscreen vs normal).
But I'm not aware of a reliable way to do ‘instantaneous’ fullscreen detection from within a project while it is running (i.e. to check the state *right now* without any user interaction).
There used to be some minor differences in pixel-aliasing for fullscreen vs normal, so colour touching could be used to tell which. I think they're all fixed now…? (Not properly tested, though.)
I'd be interested to know if anyone else has any ideas how it might be possible to create such an ‘instantaneous’ fullscreen test?
I was just wondering, is it possible that the x and y position can be used for something like this. BoltBait's detector is used WHENEVER someone preses the green flag. I want to do it during the game as well
- dimitrip
-
500+ posts
Fullscreen detector
Hi.
I did this one which can be used during project execution only (not at start).
It's based on sudden changes of mouseX when screen switches from Normal to Fullscreen and vice-versa, and mouseY position (which is always above stage area when clicking screen sizing icons).
It's not perfect though.
Browser window changes due to operating system or task manager probably could interfere.
But works rather well in editor mode, except if you suffer from epilepsy (cause wide mouse moves could be interpreted like a screen size switch).
I was just wondering: why (in what cases) do you want to know if you currently run in Fullscreen or Normal mode ?
Greetz,
Dimitri.
Thank you log father!
I was just wondering, is it possible that the x and y position can be used for something like this. BoltBait's detector is used WHENEVER someone preses the green flag. I want to do it during the game as well
I did this one which can be used during project execution only (not at start).
It's based on sudden changes of mouseX when screen switches from Normal to Fullscreen and vice-versa, and mouseY position (which is always above stage area when clicking screen sizing icons).
It's not perfect though.
Browser window changes due to operating system or task manager probably could interfere.
But works rather well in editor mode, except if you suffer from epilepsy (cause wide mouse moves could be interpreted like a screen size switch).
I was just wondering: why (in what cases) do you want to know if you currently run in Fullscreen or Normal mode ?
Greetz,
Dimitri.
Last edited by dimitrip (Aug. 6, 2015 08:50:05)
- The-king-Stpro1
-
84 posts
Fullscreen detector
2. Things, 1. is that I need 1 that can be used in BOTH start and while running the project. 2, Read the very first post of why I need that fullscreen thing Hi.Thank you log father!
I was just wondering, is it possible that the x and y position can be used for something like this. BoltBait's detector is used WHENEVER someone preses the green flag. I want to do it during the game as well
I did this one which can be used during project execution only (not at start).
It's based on sudden changes of mouseX when screen switches from Normal to Fullscreen and vice-versa, and mouseY position (which is always above stage area when clicking screen sizing icons).
It's not perfect though.
Browser window changes due to operating system or task manager probably could interfere.
But works rather well in editor mode, except if you suffer from epilepsy (cause wide mouse moves could be interpreted like a screen size switch).
I was just wondering: why (in what cases) do you want to know if you currently run in Fullscreen or Normal mode ?
Greetz,
Dimitri.
- coke11
-
1000+ posts
Fullscreen detector
Ok so not that you figured out the problem you may want to close the topic
.

- The-king-Stpro1
-
84 posts
Fullscreen detector
not yet Ok so not that you figured out the problem you may want to close the topic.
- Discussion Forums
- » Help with Scripts
-
» Fullscreen detector