• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Problems with resizing the game window

U

Ukaygee

Guest
Hey, so I'm having a few issues with resizing the game window.

First of all, when I resize it, text on the screen gets re-positioned from:

being in the centre of the screen,
upload_2018-5-15_16-47-1.png

to not being in the centre.
upload_2018-5-15_16-47-19.png

To fix this, I tried using the following code:
Code:
surface_resize(application_surface, display_get_gui_width(), display_get_gui_height());
This worked, however the black bars were no longer there, and the screen got stretched and squashed.

Also, would there be a way for me to resize the text relative to the scale of the screen?
 

Attachments

Top