How do I Window width letterbox scale

Get help using Construct 2

Post » Mon Jun 01, 2015 7:30 am

When i set the game to letterbox scale my calculations such as set an objects scale to window width/2 are out of sorts. why is this? is there a work around?
B
44
S
14
G
3
Posts: 290
Reputation: 8,895

Post » Mon Jun 01, 2015 9:36 am

I'm not sure why that is, but I always use the ViewportLeft(), ViewportRight(), ViewportTop() and ViewportBottom() expressions

So instead of Window width/2
I use

0,5*(ViewportRight(0)-ViewportLeft(0))
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Jun 01, 2015 4:26 pm

Thanks a bunch little stain. I will try this later today!. Cheers m8!
B
44
S
14
G
3
Posts: 290
Reputation: 8,895

Post » Tue Jun 02, 2015 4:12 am

Works great! thansk little stain.
B
44
S
14
G
3
Posts: 290
Reputation: 8,895


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 43 guests