Landscape/portrait-switching turns screen blank

Discussion and feedback on Construct 2

Post » Sun May 27, 2012 3:38 am

Hello,

I've started building a project and noticed that whenever I switch between landscape and portrait on any of my iDevices, the screen more often than not turns pitch black.

I've tested this on an iPad 2, iPhone 4S and iPhone 3GS, and in all cases rotating the screen causes the screen to go black.

Is this a well-known error? Is there something I can do to keep this from happening?

Also, as a side note, is there any way to prevent the game from going portrait in the first place?

Thanks.bolosaur2012-05-27 03:39:08
B
22
S
5
Posts: 107
Reputation: 2,354

Post » Mon May 28, 2012 4:47 pm

Looks like a Safari bug. I've added a hack to work around it and fix it, hopefully it will work in the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Mon May 28, 2012 4:48 pm

Sort of related, but I've also noticed that letterbox mode doesn't really work on mobile devices.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Mon May 28, 2012 7:15 pm

r92 just went out and has a related fix, is that any better?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Tue May 29, 2012 10:09 am

Thanks for the update Ashley.

I tested the fix on both an iPhone 3GS and iPhone 4S.

On the 3GS I rotated the screen before the HTML5 loader was finished, which once again prompted the glitch to appear. If I however waited for it to load in portrait mode, the fix worked perfectly fine.

On the 4S I didn't get a HTML5 loader as the app loaded instantly, and in this case the glitch appeared regarldess of whether or not I waited for a bit in portrait mode before I started rotating it.

Hope this helps.bolosaur2012-05-29 10:11:36
B
22
S
5
Posts: 107
Reputation: 2,354

Post » Tue May 29, 2012 1:23 pm

@bolosaur - we use offline caching to allow games to load offline. This means if you visit the same URL you visited previously, even if you updated the files on the server it will not update unless you refresh the page another two or three times. So you're probably still seeing the old version of the game. Does re-refreshing fix it?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Tue May 29, 2012 1:48 pm

I did not see this problem anymore with r92 on the iPhone 4.
B
19
S
5
G
5
Posts: 48
Reputation: 4,843

Post » Tue May 29, 2012 1:52 pm

Sorry Ashley, I managed to remove an important line from my last post. :)

What I meant to say was that your fix worked in the iOS browsers, but when I saved the pages to my home screen the above mentioned bugs occured.

Are you getting this as well?
B
22
S
5
Posts: 107
Reputation: 2,354

Post » Fri Jun 01, 2012 10:41 pm

I know you guys are really busy, but I want to give this a bump in case it's a bug that needs to be fixed.
B
22
S
5
Posts: 107
Reputation: 2,354

Post » Thu Aug 02, 2012 5:03 am

Still getting the black screen when rotating the iPad.. just curious if this is this a fixable thing?
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
23
S
7
G
3
Posts: 375
Reputation: 4,797

Next

Return to Construct 2 General

Who is online

Users browsing this forum: 8tomo8 and 11 guests