Get Screen Resolution of a Mobile Device

Get help using Construct 2

Post » Mon May 06, 2013 5:23 pm

Hi
I'm Making a videogame with construct 2 and cocoonjs
However I have a little problem.
I would like to know the exact resolution of the mobile device or at least the aspect ratio, In that way I can utilize the screen in a better way.
For Example, the aspect ratio of an iPad is different that the one of the iPhone.

My game is a puzzle game so I need to have most objects that I can on screen.
For exmple, look at candy crush there is no screen waste
See ya!

Thanks in advance!

Construct 2 Rules!akumaGouki2013-05-06 17:25:08
B
15
S
3
G
3
Posts: 37
Reputation: 3,627

Post » Mon May 06, 2013 9:58 pm

The WindowWidth and WindowHeight expressions should be what you need.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue May 07, 2013 9:33 pm

It works great!, thanks!
B
15
S
3
G
3
Posts: 37
Reputation: 3,627


Return to How do I....?

Who is online

Users browsing this forum: Ethan, makkancs, Marxally, pierre244, Yahoo [Bot] and 20 guests