[R117] Game window goes from centered to top left

  • Link to .capx file (required!):

    This is a private project, I can send the .capx via pm tough.

    Here?s a screenshot of the problem:

    <img src="https://dl.dropbox.com/u/6813637/bug_topleft.PNG" border="0" />

    Steps to reproduce:

    Unknown, I don?t use any custom plugins and my project properties seens normal. I?ve tried to reproduce the problem, but on a new project the game behaves normally when I change the layouts.

    Observed result:

    After a layout change, the games window goes from centered to the top left of the screen.

    Expected result:

    The game should be aways centered.

    Browsers affected:

    Chrome: yes

    Firefox: unknown

    Internet Explorer: yes

    Operating system & service pack:

    Windows 8

    Construct 2 version:

    R117

    Do you have any clue what may be causing this odd behavior? Thank you.

  • This has been happening to me too. It's changing from centered to left on different layouts.

    I use Chrome.

  • Happens here too in Chrome and Opera. It's been happening at least since r114 I think.

  • Can you reproduce this in a new project? Generally complete games are too difficult to debug, and it means you can share your project publicly too.

  • I�ve tried to reproduce the same bug, but in a new project the window align to the center as usual. I�ll try to do more tests and will update the report, but I�m in a loss of what is causing this issue.

    Thanks.

  • Ashley I�ve found what was causing the bug, here are the steps to reproduce:

    1 - Create a layout.

    2 - Set the fullscreen in browser inside project properties to "Letterbox Integer Scale"

    3 - On the first layout, create this event:

    "On the start of the layout > Request Full Screen(Letterbox Scale)

    Here�s the link to the .capx demonstrating the issue, thank you.

    LINK TO CAPX

  • OK, I've fixed this for the next build, but the problem is the fullscreen request fails. You can only use it in keyboard input events, and layout changes happen after a one tick delay, so the fullscreen request on 'start of layout' after changing layout fails. The fix means the window stays in the middle rather than going to the top left, but the request has still failed, so it won't do anything else.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Ashley, I really don�t know what I had in mind requesting the fullscreen to change on the start of the layout, doesn�t make sense to me now. ;]

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