device orientation change shifts everything

Get help using Construct 2

Post » Mon Feb 03, 2014 11:43 pm

Hey guys i'm looking for some help on an issue im having.

Im making a web game that will run on mobile devices. As we all know sometimes people start playing the game in an orientation that the game was not designed to be played or people just change the way they are holding the device.

My game requires individuals hold the device in the portrait position. If they change the orientation to landscape I make a layer visible that tells them to put it back into portrait to continue playing.

But what seems to happen when I put it back into portrait is that everything gets shifted over. Making the game unplayable. You can see what I mean here. If someone can let me know how to fix this problem I would greatly appreciate it. Thanks a lot guys

Portrait





Landscape






Back to portrait

B
8
S
2
G
1
Posts: 64
Reputation: 1,340

Post » Tue Feb 04, 2014 12:11 am

Are you using scale outer or scale inner in fullscreen?
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Tue Feb 04, 2014 12:31 am

This may or may not be related to my latest bug post - it seems oddly similar.

Perhaps have a look at that and see if it points you in the right direction. It could be an inherent bug in Construct. That's all I can suggest I'm afraid.

http://www.scirra.com/forum/topic85048_post497680.html#497680
B
7
S
1
Posts: 27
Reputation: 505

Post » Tue Feb 04, 2014 1:29 am

Hey Joannesalfa I'm using scale outer
B
8
S
2
G
1
Posts: 64
Reputation: 1,340

Post » Tue Feb 04, 2014 1:37 am

Hey smallbear I think it might be a different problem if im understanding your problem correctly. I think mine has to do with some sort of calculation that needs to be made I have no idea lol. Thanks for pointing your post out though.
B
8
S
2
G
1
Posts: 64
Reputation: 1,340

Post » Wed Feb 05, 2014 12:56 am

Anyone have any other ideas?
B
8
S
2
G
1
Posts: 64
Reputation: 1,340

Post » Sun Feb 23, 2014 6:46 pm

What are you using for scrolling? Make sure your scrollto is on the correct object, or if you are pinning an invisible sprite to another sprite and the invisible sprite has the scrollto on it, then make sure they are staying together when the device orientation changes. You can also use the browser objects lock orientation and see if that helps (if you don't want the game to work when rotated).
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603

Post » Tue Feb 25, 2014 9:57 pm

ok cool let me try that out and see how that goes thanks @bluePhaze appreciate it.
B
8
S
2
G
1
Posts: 64
Reputation: 1,340


Return to How do I....?

Who is online

Users browsing this forum: Artcadev and 5 guests