Scale for mobile screen

Get help using Construct 2

Post » Tue Oct 18, 2011 6:08 pm

Hi

Ive done my grapichs for screen 480x960

BUT how do I use this to scale it down

windowWidth / 2 and windowHeight / 2

Regards
flemmig
B
22
S
12
G
10
Posts: 322
Reputation: 7,353

Post » Tue Oct 18, 2011 8:47 pm

Try using the 'set layer scale' action.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Tue Oct 18, 2011 9:00 pm

HI

Yes I see that I can set the layer scale
but wonder if there is another way..

I mean shouldnt I first somehow detect the mobile screen size



B
22
S
12
G
10
Posts: 322
Reputation: 7,353

Post » Tue Oct 18, 2011 9:39 pm

I think most mobile screens use a similar standard... Look up the tutorial for creating mobile games with Construct.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Oct 18, 2011 9:51 pm

thanks but there a quite a difference in screen sizes
in the tutorial it stops when coming to that issue:

""""
This makes your app take up the entire screen, no matter how big it is, rather than using a fixed size.

Now, you'll need to set up some events to reposition and resize objects depending on the size of the screen. You can get the current size of the screen with the WindowWidth and WindowHeight system expressions. We'll leave this down to you. It will take some tweaking and testing. We're hoping to add some features to make this step easier in future - we'll update this tutorial once they're available! In the mean time, you'll have to make some events to handle this yourself. """"

So if anyone have a Idear in how to use WindowWidth and WindowHeight
please let me know

Regards
flemmig

B
22
S
12
G
10
Posts: 322
Reputation: 7,353


Return to How do I....?

Who is online

Users browsing this forum: jeffige, TheHat, Yahoo [Bot] and 1 guest