User Tag List

Results 1 to 9 of 9

Thread: Changing screen size/aspect ratio at runtime?

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Strife's Avatar
    Join Date
    Sep 2006
    Location
    Upstate NY
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing screen size/aspect ratio at runtime?

    My game has a default resolution of 320x240 (fullscreen), but I want my players to be able to switch between this resolution and a widescreen resolution (426x240) at runtime. What I mean by this is that the amount of content the player can see is expanded, like so:



    I can do this with the Window Control object, but unfortunately, it does not work when "Resize display to fill window size" is checked in the application properties, and I need it to be checked. I want the player to be able to stretch the window to their liking in addition to being able to choose one of these two screen sizes.

    Is there an extension other than the Window Control object that can help me out here? If not, is there another way for me to stretch the screen without checking "Resize display to fill window size"?

  2. #2
    Clicker Fusion 2.5iOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SolarB's Avatar
    Join Date
    Feb 2012
    Location
    Melbourne
    Posts
    905
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    turn off resize to fit and using window control just shrink or expand window width depending on the user's choice and set the frame size to the window size. make sure you centre stuff like menus using x=(x left frame+x right frame)/2. in game if you're using scrolling on the player this should auto-centre to the frame. oh and because of the menubar and borders frame size won't be exactly the window size. there's a calculation for this somewhere but i've forgotten it atm

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Strife's Avatar
    Join Date
    Sep 2006
    Location
    Upstate NY
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, but if I do that, then the user no longer has the option of playing with 2x or 3x resolution in case they don't want to go fullscreen. I want them to, for example, be able to pick their screen width while the game display is stretched.

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,726
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    The Ultimate Full Screen Extension?

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Strife's Avatar
    Join Date
    Sep 2006
    Location
    Upstate NY
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried experimenting with that. I'm currently using Ultimate Fullscreen to allow the player to select various screen sizes (2x, 3x, etc). The main issue I'm having is that Window Control can't seem to expand the screen width with the Ultimate Fullscreen object in place.

    Essentially, I want to take the following game setting:



    And allow the user to change it, either before the application launches or during runtime. Does a third party extension exist that can do this?

  6. #6
    Clicker Fusion 2.5iOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SolarB's Avatar
    Join Date
    Feb 2012
    Location
    Melbourne
    Posts
    905
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    here's an example, uses window control and sub-app.

    aspectsize.mfa

  7. #7
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Strife's Avatar
    Join Date
    Sep 2006
    Location
    Upstate NY
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ooh, I hadn't thought to use the Sub-App object. I'll try it out later today.

    This example should seriously be shared around, as I'm sure I'm not the only developer who would benefit from such display customization. Thanks!

  8. #8
    Clicker Fusion 2.5iOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SolarB's Avatar
    Join Date
    Feb 2012
    Location
    Melbourne
    Posts
    905
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    No probs, hope it works out! I'll put it up in the file archive section.

  9. #9
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2006
    Location
    UK
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    does anyone have this example still? I really need the ability to switch to wide-screen.
    The link seems to be dead above (it downloads a php instead of mfa)

Similar Threads

  1. Change window size and switch aspect at runtime
    By SolarB in forum File Archive
    Replies: 5
    Last Post: 20th August 2012, 09:09 AM
  2. Xbox360 aspect ratio/ screen resolutions
    By mobichan in forum XNA Export Module Version 2.0
    Replies: 0
    Last Post: 12th May 2011, 01:50 PM
  3. Change aspect ratio at runtime
    By netninja in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th October 2010, 02:56 PM
  4. Keeping Aspect Ratio
    By Game_Master in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th May 2009, 08:26 PM
  5. MMF2 screen aspect ratio
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th February 2009, 07:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •