Getting Size of Device's Screen

Get help using Construct 2

Post » Thu May 28, 2015 9:10 pm

Apologies if this has already been answered, but most of the answers I found around were obsolete (Or maybe I didn't look around enough),
So, I'd like to know which system variable gives us the size of the device's screen, preferably mobiles.

Thank you for reading and have a nice day!
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,471

Post » Thu May 28, 2015 9:40 pm

I think you're after Browser.ScreenHeight & Browser.ScreenWidth values :).
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,255
Reputation: 46,484

Post » Thu May 28, 2015 10:07 pm

@Colludium
Are these compatible with CocoonJS and other exporters?
Otherwise, I'll give it a shot!
Thank you and have a nice day ;)
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,471

Post » Thu May 28, 2015 10:45 pm

I'm not sure - although I would expect it to work with Intel XDK because it's a full-up browser. I haven't used cocoonjs for a while... Cheers.
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,255
Reputation: 46,484

Post » Fri May 29, 2015 12:38 am

Colludium wrote:I'm not sure - although I would expect it to work with Intel XDK because it's a full-up browser. I haven't used cocoonjs for a while... Cheers.


In the XDK how do I make it so it's "fullscreen" on mobile, no matter the device?

Usually on android I get black bars if I switch to a different wide screen.

How do I make it so it's usually Landscape? Is that in the Construct or in the XDK? Is it Orientations: Landscape?
B
4
Posts: 15
Reputation: 226


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 9 guests