Discuss Scratch

The-king-Stpro1
Scratcher
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?
The-king-Stpro1
Scratcher
84 posts

Fullscreen detector

BUMP
cm8263
Scratcher
100+ posts

Fullscreen detector

There is not but you can ask for one here…

https://scratch.mit.edu/discuss/1/
dude341
Scratcher
1000+ posts

Fullscreen detector

cm8263 wrote:

There is not but you can ask for one here…

https://scratch.mit.edu/discuss/1/
No, BoltBait made one.
The-king-Stpro1
Scratcher
84 posts

Fullscreen detector

dude341 wrote:

cm8263 wrote:

There is not but you can ask for one here…

https://scratch.mit.edu/discuss/1/
No, BoltBait made one.
Where is it?
The-king-Stpro1
Scratcher
84 posts

Fullscreen detector

I found my answer thanks!
TheLogFather
Scratcher
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?

Last edited by TheLogFather (Aug. 5, 2015 16:33:17)

The-king-Stpro1
Scratcher
84 posts

Fullscreen detector

TheLogFather wrote:

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?
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

Last edited by The-king-Stpro1 (Aug. 5, 2015 16:38:52)

dude341
Scratcher
1000+ posts

Fullscreen detector

The-king-Stpro1 wrote:

TheLogFather wrote:

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?
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
How about detect it at the start, then display it later.
dimitrip
Scratcher
500+ posts

Fullscreen detector

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.

Last edited by dimitrip (Aug. 6, 2015 08:50:05)

The-king-Stpro1
Scratcher
84 posts

Fullscreen detector

dimitrip wrote:

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.
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
coke11
Scratcher
1000+ posts

Fullscreen detector

Ok so not that you figured out the problem you may want to close the topic .
The-king-Stpro1
Scratcher
84 posts

Fullscreen detector

coke11 wrote:

Ok so not that you figured out the problem you may want to close the topic .
not yet

Powered by DjangoBB