Is there a simple way to change the screen resolution in MMF? I want to make my game 320x240 but have it be double that size (640x480) when you are playing.
Printable View
Is there a simple way to change the screen resolution in MMF? I want to make my game 320x240 but have it be double that size (640x480) when you are playing.
Yes, you can either tick the "Change resolution mode" option in the Application Properties to make it go into full-screen mode (or do it through the Storyboard object while running the game) - or you can use the Window Control object to alter the size of the window alongside "Resize display to window size".
Hello.
An easy way would be:
Go to the second tab of the application properties.
Check Hidden at start & Resize display to fill window size.
Add a Window Control object to the frame.
(Negated) Window is visible:
* Set X size to WinXSize( "Window Control" )+ClientWidth( "Window Control" )
* Set Y size to WinYSize( "Window Control" )+ClientHeight( "Window Control" )
* Set position °4
* Make window reappear
What happens? The window is not shown at start.
The client area size, 320x240, is added to window's size.
The window is re-centered (since it resized), and then shown.
EDIT: you posted 50 minutes ago? I had this thread open for over 40 minutes!
I have done this... lolQuote:
Originally Posted by Looki
stephen1980
Thanks Looki. That did the trick. Can I ask why you set the position? It doesn't seem to do anything. Also, is there any difference if I were to just set the width/height like so:
(Negated) Window is visible:
* Set X size to ClientWidth( "Window Control" )*2
* Set Y size to ClientHeight( "Window Control" )*2
* Make window reappear
Thanks again,
Mobichan
The position should center the window. It's not automatically after the resizing. It should be a little off - 320px to the right and 240px to the bottom to be exact.
Your formula ignores the window's border/edge. The image will not be exactly 2x, it's close but still looks weird.
Ah, I see. Thanks for the info. :)
Sorry to resurrect an old thread, but I have also been trying to apply this to a subapp. The problem is that the subapp is displaying offset in Y by the amount of the menubar, so it doesn't sit over the play area of the game below the subapp. I hope I explained that well enough. ^_^'
Can someone offer a solution for how to resize a subapp window to the same size as the main app and have it overlap exactly on top of the main app?
Mobichan