GameMaker: Studio

GameMaker: Studio

Ver estadísticas:
Anemolo 8 DIC 2014 a las 11:12
problem with switching between fullscreen and windowed mode
im using

window_set_fullscreen(!window_get_fullscreen())

to switch between fullscreen and windowed mode but i dont know how to change the port on screen, so the window is little and not big as fullscreen mode
< >
Mostrando 1-2 de 2 comentarios
Blind 8 DIC 2014 a las 11:17 
1. helpful script for future use: perform math on an object to increase or decrease by a percentage and return that value

Then increase/decrease your view port by 20% (hbor, or whatever)

2. Create a second view that uses your correct full screen functions and swap between them, requires less customization, but there's the potential problem that returning to windowed might keep the smaller size and it might not be compatible if you are already using multiple views.
Última edición por Blind; 8 DIC 2014 a las 11:18
Sera 8 DIC 2014 a las 14:49 
I'm gonna throw in a couple cents here, because I've encountered a weird problem, both in my own projects and projects done by others, related to this:

GM treats full screen swtiching and scaled ports kind of weird.

I've set up a project to let views scale down a 1080 area to a 720, mostly to make Windowed mode more than a funny joke for anyone without a 4K monitor, because it turns out not everyone is rich or whatever. For the most part, this works pretty well.

The catch comes in how it behaves when the screen is changed; upon the first entry into full screen, you'll likely get a 1080 window regardless of how things have been set up. That said, going back into and out of full screen sets things up properly at the res specified by the user.

I'm not sure why it does it, and actions taken against it don't seem to really accomplish anything. I'm changing both the view's port and the canvas surface size, and manually setting the window size to try and counter the weird behavior, albeit to no avail.

My point is, if you're having a similar experience, it might just be GM having a weirdly specific quirk, or maybe we're both just completely doing it wrong.
< >
Mostrando 1-2 de 2 comentarios
Por página: 1530 50

Publicado el: 8 DIC 2014 a las 11:12
Mensajes: 2