Orientation - Need a plugin?

Discussion and feedback on Construct 2

Post » Sun Oct 25, 2015 11:38 pm

I have been reading posts and do we actually need to use a plug in to lock our orientation?

I have set the game orientation to Landscape.
First line of first On Start Layout is Browser: Lock Orientation Landscape.

Game only runs in portrait?

Building using XDK and set orientation to Landscape there as well.

Thoughts? Thank you.
B
42
S
16
G
3
Posts: 169
Reputation: 4,383

Post » Mon Oct 26, 2015 12:00 am

I would like to know that too!
B
93
S
31
G
11
Posts: 654
Reputation: 11,832

Post » Mon Oct 26, 2015 1:20 am

Seems crazy to think we would need a plugin for such a basic feature for all apps.
B
42
S
16
G
3
Posts: 169
Reputation: 4,383

Post » Mon Oct 26, 2015 10:32 am

You don't.
And using XDK and setting the orientation property in the project should do the trick.
Be sure that you are not setting the configuration in the tab for an export you are not using (ie: Android tab when you are exporting as Android-Crosswalk).

See this part in that tutorial.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,328
Reputation: 71,298

Post » Mon Oct 26, 2015 12:28 pm

See Fullscreen and orientation lock in browsers.

tl;dr - in browsers orientation lock only takes effect in fullscreen mode, and you can only enter fullscreen mode in a user input trigger.
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests