Set Canvas size with Scale?

Get help using Construct 2

Post » Fri Apr 26, 2013 12:01 pm

I would like to create a loader layout that detects the screen size of the mobile device and automatically routes to the correct layout with the correct aspect ratio. Eg. iPad, iPhone size etc...

Currently, by setting canvas size I only manage to get it working when the scale function is off (Only on browser). However, exporting to CocoonJS requires Full screen mode - scale which doesn't seem to turn out right.

What I did was:
1) Check WindowWidth & WindowHeight
2) Set Canvas size
3) Go to layout

Is there any way to solve this? Or am I doing something wrong.

Also I noticed the initial WindowWidth and WindowHeight values are the device's width and height. Not the WindowSize I set in C2's properties. This allows us to detect the device aspect ratio and sort them accordingly to different layouts.

Posts: 18
Reputation: 711

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 7 guests