For mobile, is it possible to disable any auto orientation?

Get help using Construct 2

Post » Sun Sep 24, 2017 3:52 pm

FYI:

"Thanks, but will it still rotate between portrait modes if the phone is flipped 180 degrees?,"

Using the android_manifest.xml way above, will disable (ignore) any rotation from the user flipping the phone 180 degrees.
B
9
S
4
Posts: 22
Reputation: 721

Post » Mon Sep 25, 2017 7:47 am

unicornspitfire wrote:
rekjl wrote:
unicornspitfire wrote:Try install this plugin and see if it works. https://github.com/apache/cordova-plugin-screen-orientation


Doesn't look like it's a plugin for c2. Not sure it's intended for which program.


I use the c2 official browser plugin to do
Code: Select all
Browser|lock orientation to primary portrait

Then add cordova-plugin-orientation (given Git) to your project. I have tested and it should lock your app to certain orientation even if you rotate 180 degrees.
Make sure you set it to "primary"(normal screen position) or "secondary"(upside down) so it is locked.


Thanks! That's really great. I'm travelling now, will try implement it once I'm back.

Again, thank you, really appreciate it.
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Mon Sep 25, 2017 10:22 am

htmlgames wrote:FYI:

"Thanks, but will it still rotate between portrait modes if the phone is flipped 180 degrees?,"

Using the android_manifest.xml way above, will disable (ignore) any rotation from the user flipping the phone 180 degrees.


That method is also very useful. No need to wait for layout to get started. Thank you. :D
B
13
S
2
Posts: 31
Reputation: 699

Post » Mon Sep 25, 2017 1:49 pm

htmlgames wrote:FYI:

"Thanks, but will it still rotate between portrait modes if the phone is flipped 180 degrees?,"

Using the android_manifest.xml way above, will disable (ignore) any rotation from the user flipping the phone 180 degrees.


Thanks! Didn't saw your post earlier, sorry. Will definitely try this as well, always good to learn new techniques. Thank you again!
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Previous

Return to How do I....?

Who is online

Users browsing this forum: Darknessed, FabianB and 49 guests