User Tag List

Results 1 to 5 of 5

Thread: Aspect ratio/letterbox

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    823
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Aspect ratio/letterbox

    Hi all,

    I have a question about screen aspect ratio. I've found a simple solution, but I'm kinda hoping there's a better one.

    If I have a game that is, say, 320x200, I want my game to take up as much of the screen as possible. However, I also want the aspect ratio to remain the same, so that the game is not stretched. On a widescreen monitor (5:8) it should take up the whole screen. On a regular monitor (3:2), it should be in letterbox format to compensate for the aspect.

    My current solution --- Turn on "resize display to fill window size," then add the following to global events:
    Code:
    WindowInit=0
      -->Set WindowInit to 1
      -->Window Control: Set horizontal position to 0
                         Set vertical position to (ScreenYSize( "Window Control" )-(ScreenXSize( "Window Control" )*200)/320)/2
                         Set horizontal size to ScreenXSize( "Window Control" )
                         Set vertical size to (ScreenXSize( "Window Control" )*200)/320
    The problem with this is that the desktop shows through the top and bottom of the "letterbox." You can try my Trike Demo to see the problem I'm talking about.

    I've tried the "keep screen ratio" option in MMF HWA, but it doesn't seem to be what I want. Has anybody found a better solution?

    Thanks,
    UltimateWalrus :3=

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Aspect ratio/letterbox

    All you have to do is put that app as a sub application into a bigger one that has a black background for the letterbox bars like RickyRombo did for hi space game. He want through a lot to get it to work, so he can help best with this stuff.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    823
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Aspect ratio/letterbox

    This sounds like a great suggestion! Just one thing --- is there a way for me to resize a sub-app in real time? I don't see a condition anywhere... :\

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Aspect ratio/letterbox

    Resizing it from inside the sub application seems to work fine, I just tested and wheather or not it's a popup window it resizes to whatever you want.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    823
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Aspect ratio/letterbox

    I've got it working!! Thank you very much LB.

Similar Threads

  1. Change aspect ratio at runtime
    By netninja in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th October 2010, 03:56 PM
  2. Keeping Aspect Ratio
    By Game_Master in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th May 2009, 09:26 PM
  3. MMF2 screen aspect ratio
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th February 2009, 08:43 PM
  4. aspect ratio question
    By Golds in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th September 2008, 06:15 AM
  5. Ratio Aspect Stretching
    By BrandonC in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th May 2008, 12:31 AM

Posting Permissions

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