device orientation change shifts everything

0 favourites
  • 8 posts
From the Asset Store
The ultimate voice pack filled with 1,536 files of .......wav and mp3 of individual numbers, letters, and words (that go
  • 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

    <img src="http://windows-apps.com/wp-content/uploads/2014/02/IMG_20140203_175640-180x300.png" border="0" />

    Landscape

    <img src="http://windows-apps.com/wp-content/uploads/2014/02/IMG_20140203_175649-300x180.png" border="0" />

    Back to portrait

    <img src="http://windows-apps.com/wp-content/uploads/2014/02/IMG_20140203_175656-180x300.png" border="0" />

  • Are you using scale outer or scale inner in fullscreen?

  • 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.

    scirra.com/forum/topic85048_post497680.html

  • Hey Joannesalfa I'm using scale outer

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • Anyone have any other ideas?

  • 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).

  • ok cool let me try that out and see how that goes thanks BluePhaze appreciate it.

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