[R117] Game window goes from centered to top left

Bugs will be moved here once resolved.

Post » Wed Feb 06, 2013 11:51 pm

Link to .capx file (required!):
This is a private project, I can send the .capx via pm tough.
Heres a screenshot of the problem:


Steps to reproduce:
Unknown, I dont use any custom plugins and my project properties seens normal. Ive 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.
    
B
38
S
8
G
3
Posts: 438
Reputation: 6,869

Post » Thu Feb 07, 2013 7:20 am

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

I use Chrome.nemo2013-02-07 07:20:37
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Thu Feb 07, 2013 11:28 am

Happens here too in Chrome and Opera. It's been happening at least since r114 I think.
B
22
S
6
G
1
Posts: 398
Reputation: 3,384

Post » Thu Feb 07, 2013 3:23 pm

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.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Feb 07, 2013 3:52 pm

Ive tried to reproduce the same bug, but in a new project the window align to the center as usual. Ill try to do more tests and will update the report, but Im in a loss of what is causing this issue.
Thanks.
B
38
S
8
G
3
Posts: 438
Reputation: 6,869

Post » Wed Feb 13, 2013 10:31 pm

@ashley Ive 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)

Heres the link to the .capx demonstrating the issue, thank you.
LINK TO CAPX
B
38
S
8
G
3
Posts: 438
Reputation: 6,869

Post » Thu Feb 14, 2013 3:44 pm

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.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Feb 14, 2013 4:25 pm

Thanks Ashley, I really dont know what I had in mind requesting the fullscreen to change on the start of the layout, doesnt make sense to me now. ;]
B
38
S
8
G
3
Posts: 438
Reputation: 6,869


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests