Stretch image to full screen size

0 favourites
  • 3 posts
From the Asset Store
Elevate your games with our AI Chatbot Integration! Seamlessly connect your Construct 3 projects with GPT-4 for dynamic,
  • Hi Guys / Gals,

    I'm using "Scale Outer" for a game I'm working on and trying to make it work on a few screen sizes. For the most part I have things working, unfortunately I need an image to stretch the full width / height of the window which I'm having some issues with.

    What I have attempted to do is set the size of the object to be windowWidth, windowHeight. This works great when the screen is larger but as the screen shrinks to smaller sizes you then see letter box bars around the edge.

    I have tested using "Scale Inner" and this gives the desired results, unfortunately I use the "Scale Outer" scaling for other things so ideally I'd like to avoid having to switch over to this.

    Can anyone point me in the right direction on how to do this at all?

    Many thanks in advance <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'll add in that I'm able to position things at the bottom of the screen when I set them to CanvasToLayer and this works fine. But if I use this to set the height of something it still does not scale correctly.

  • I also have a question, I ask forgiveness for such English.

    In general such a problem when using the scale inner, that for android, that like all good PC game goes to full screen, but not on the android image protrudes beyond the lower bar on the PC and in browsers that 16:9 monitor that 4:9, the image is generally beyond the scope of the monitor, scale outer works well only to 16:9 to 4:9, he does not cut the image on the right as it was before, and cuts off the bottom with concrete!

    Translation of this innovation from our website:

    Fullscreen in browsers, the option 'Scale' is replaced by 'Scale inner' and 'Scale outer'. 'Scale outer' does the same thing and did earlier. But the 'Scale inner' is a new version of the scale at which the game is "cut off" the edge of the screen, and do not stretch the game space, if the aspect ratio does not match. For example, it is useful to develop games 16:9, if the screen will have a 4:3 ratio, then the game will be "cut off" at the edges, and will be visible only to the central part.

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