Lock screen orientation

0 favourites
  • 8 posts
From the Asset Store
Is a circular loading screen with code ready to use. No Animation.
  • Is there a way to prevent screen auto-orientation on HTML5 ? I have a prototype using Acceleration(X&Y)WithG and the native 'screen auto-rotate' constantly interfere.

  • There's no browser standard on this at the moment I'm afraid. However some other platforms (like appMobi, CocoonJS and Windows 8 apps) allow an orientation lock option in the export or publishing phase.

  • I haven't tried it, but you might be able to achieve this by checking the device's orientation by comparing if windowwidth>windowheight and change the layout angle accordingly.

  • Well, its not a layout orientation pb only: when the screen rotate, the X & Y sensors become inverted. Really goofy stuff from the phone developers. Maybe they don't play games ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Ashley,

    I am a bit reluctant to dish out one licence for Construct 2 and another for Cocoon while prototyping. I may hit another snag further down...

    Would someone -licensed- be kind enough to compile what I have done so far ? Christmas is coming soon,right ?

  • Hello, if you're using Phonegap this might be useful:

    github.com/cogitor/PhoneGap-OrientationLock

    Construct creates some javascript files when you export to Phonegap, but since I have no knowledge of javascript I don't know where(there's several files) you're supposed to paste that code.

    If anyone could clarify that to me it'd be great. Hope it helps, and hope you help me too <img src="smileys/smiley2.gif" border="0" align="middle" />

  • hello

    my game is potrate view game but there is some problem , the problem is when i flip my phone to horizontal.Game also flip in horizontal mode . i want to lock my game in potrate mode . please send me the link . or solution

  • how to stop auto rotation, in final apk

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