Aspect Ratio

This forum is currently in read-only mode.
0 favourites
  • Is there any way to change the aspect ratio of the screen?

    I have a 16:10 widescreen monitor and obviously, everything that's running fullscreen on a 4:3 resolution looks weird.

    Is there a way to set the is screen on 4:3, 16:9 or 16:10 ratio? That would be really awesome

  • You can zoom a layer's x and y separately by a percentage.

    I just tested it out on one of my projects and it works just fine. I also have a widescreen monitor, but the stretching is usually very minimal and not really noticeable in most games. The game I'm making though has a ball as the player object, so you can see that it's slightly oblong in fullscreen. Changing just the X zoom ratio to 80ish percent fixed it.

  • I know this may seem really lazy, but could you please post an example?

  • <img src="http://i38.tinypic.com/311s65k.png">

    ~ OR ~

    <img src="http://i36.tinypic.com/23hpurt.png">

  • The 'Set Display Resolution' action can actually change the window size and displayable area as well. I strongly recommend games made in Construct use it to provide an option to run the game in widescreen.

  • Why is it that I always make something that you guys are talking about, without even knowing you guys are talking about it until I've finished?

    ~Sol

  • Why is it that I always make something that you guys are talking about, without even knowing you guys are talking about it until I've finished?

    ~Sol

    I don't get it... When I change the Display Size, I also have to change the zoom for every Layer?

  • How about adding black bars to keep the original 16:10 aspect on a 4:3 resolution?

  • How about adding black bars to keep the original 16:10 aspect on a 4:3 resolution?

    I'm guessing to mean so you could support both types of monitor, from like an option screen? I don't see why you couldn't... you could try putting actual black bar sprites on the top layer. If you place them in the right spots and make them the right size, and get creative with the resolution and maybe some zooming, it could work pretty well I think. It's something that might need some tweaking to perfect but I don't think it'd be all that complicated.

  • > How about adding black bars to keep the original 16:10 aspect on a 4:3 resolution?

    >

    I'm guessing to mean so you could support both types of monitor, from like an option screen? I don't see why you couldn't... you could try putting actual black bar sprites on the top layer. If you place them in the right spots and make them the right size, and get creative with the resolution and maybe some zooming, it could work pretty well I think. It's something that might need some tweaking to perfect but I don't think it'd be all that complicated.

    It is complicated... trust me...

    At least for me it is. I just couldn't do it.

    I really think there should be an option within Construct to stretch, fit, or whatever you want to do with the display and resolutions, without having to zoom each layer individually and all that stuff.

  • Well, by now you know where all the settings are, and you have the basic idea of what needs to get done. I guess if it's not working for you then post your .cap so someone can take a look at it to see where it went wrong.

    Just about everyone here is willing to help... but if you show what you have so far, people will be more likely to help you figure it out.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • this is exactly what i want to do -- have it run widescreen, and if it's set to a 4:3 resolution, add black bars so that the viewable area is never effected. i wish someone would make an example -- i'm not having any luck.

  • Zooming each layer is about the only way to do it... I had to do it like that with Chamber. The problem I am having is that the game runs by default in 4:3 ratio, and if I try to make it adjust the window size to something other than a 4:3 during runtime, it won't do it.

    I am more than happy to post a cut down cap file of chamber if you guys want, so you can see how I did the resolution thing, but it only works in 4:3 aspects.

    ~Sol

  • Here: http://www.fileshack.us/get_file.php?id ... aspect.cap

    This example tests the user's desktop resolution to determine if they have a 4:3 (1.33) or 16:9 (1.78) monitor.

    The black bars are manually placed based on some simple math.

    This example will only go fullscreen if you have your desktop resolution set to a 1.33 or 1.78 aspect ratio, but you could test for other ratios as well and set them accordingly.

    I didn't get a chance to test this on my 16:9 monitor, but I'm pretty sure it works (I faked it by setting my 4:3 monitor to a 16:9 resolution and didn't see any black bars when I went fullscreen, so yeah, I think it works.) Even if it doesn't work, it should give you an idea of how to make it work.

  • How about doing the same for a 16:10 monitor? (1440x900)

    Could you please add that to the .cap?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)