Prevent window scaling?

  • Hi all, this is my first post, so I hope I'm posting this in the right section.

    Is it possible to prevent window scaling when compiling the game to EXE? If not, then I'd just like to suggest implementing more control over such things (in the future/before christmas/etc).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • pirx

    Hi. It's not perfect but you can do a thing like this:

    Global number wHeight=0

    Golbal number wWidth=0

    System|On start of layout

        set wHeight to WindowHeight

        set wWidth to WindowWidth

    Browser|On resized

        Execute javascript "window.rezizeTo(" & wWidth & ", " & wHeight & ");"

    (or System|Every tick

            Execute javascript "window.onresize = function(){

                window.resizeTo(" & wWidth & "," & wHeight & ");

            };")

    And if you set the project's properties with Scale inner or Letterbox scale, you can't see objects outside the scope. I think it's a good solution.

    I don't know if there is a better option to do that, but it will be a good feature if not.

  • Thanks for the solution, it might come in really handy!

    Admittedly it's not a matter of life and death for me but this free scaling can cause issues.

    It would be really good to have a window-mode setting, something like: scalable/full-screen/fixed.

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