Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Gameframe

Custom window frame for GameMaker games · By YellowAfterlife

Different scale for different resolution

A topic by Lucas Kich created Jun 11, 2024 Views: 175 Replies: 2
Viewing posts 1 to 3

Hi,

I'd like to request a feature for this extension, if possible. I'm willing to pay. It's a stepped zoom based on the window height. So the game zooms in or out in 100% increments depending on your window or device display resolution. For reference, that could be:

<= 360p : 100% zoom
<= 720p: 200% zoom
<= 1080p: 300% zoom
<= 1440p: 400% zoom
<= 4K: 500% zoom
> 4K: 600% zoom

Those conditions should both affect fullscreen and windowed mode, that is, instead of stretching the game, it would zoom in or out whenever reaching those heights. I made two GIF mockups for visualization:


Thx!


Developer

You can use application_surface_draw_enable to disable automatic drawing of application_surface and then draw it yourself as you please in Draw GUI event (e.g. right before Gameframe’s draw).

The only thing to be aware with this is that you need to do a little math to calculate the mouse position because there isn’t a application_set_position function.

Thanks for the answer.