How do I lock rotation on Intel XDK exporter?

Get help using Construct 2

Post » Mon Jul 08, 2013 2:37 am

Hello,

I would like know how to lock the rotation of the screen when exporting using the Intel XDK?

I ready somewhere this:
Added use of the AppMobi.device.setRotateOrientation("landscape"); and AppMobi.device.setAutoRotate(false);

https://www.html5dev-software.intel.com/viewtopic.php?f=10&t=3675

But where? Since I can't find the file to edit.

EDITED: Oh, I found it, it's inside the index.html and you need to find the line:
          function onGameReady()
          {
               cr_sizeCanvasDC();
               AppMobi.device.hideSplashScreen();
          };
and add:
          function onGameReady()
          {
               cr_sizeCanvasDC();
               AppMobi.device.hideSplashScreen();
               AppMobi.device.setRotateOrientation("landscape");
               AppMobi.device.setAutoRotate(false);
          };TELLES08082013-07-08 02:43:04
Image
B
107
S
24
G
17
Posts: 1,359
Reputation: 22,266

Post » Sat Oct 26, 2013 8:02 pm

@TELLES0808 I know this post is old, but if you're still looking If you have the "XDK" object in your project list you can simply create an
"On Start of Layout" --> "Set orientation to Landscape/Portrait"
Using the XDK object.
B
12
S
2
Posts: 75
Reputation: 2,126


Return to How do I....?

Who is online

Users browsing this forum: datiel12, jorgmaquoi, tarek2 and 15 guests