How do I change the resolution size for my game?

Monkey Forums/Monkey Programming/How do I change the resolution size for my game?

DucksGonnaDuck(Posted 2015) [#1]
I'd also like to know how to change resolution size to change the 640 x 480 box into a 1400 x 900 box that would fit onto my entire screen. I'd also like to know how to make an options menu for the user to customize the resolution size. Thank you!


DeadFall(Posted 2015) [#2]


You can use these to set the default values of your window. If you want to change the window size in game you'll need to use,

SetDeviceWindow(1024, 768, FLAG)  'You can change the width and height to what you want.


For v82b (as far as I know) FLAG can be
True - Fullscreen
False - Windowed

But in v83c (experimental) FLAG has multiple options,


To get your native desktop resolution you can use,



That's probably the basics you'll need to know.