center canvas after scale

Get help using Construct 2

Post » Tue Nov 13, 2012 11:44 pm

Hello, (i'm french excuse my english)

i export a game in html5 with c2 and the option "scale".

The problem it's the canvas move to the left corner of the page.

I want to center the canvas scale.

I tried with div align in style in the html page...
but the canvas stay align on the left.

Do you have the answer ?

Thanks.
B
11
S
3
Posts: 133
Reputation: 1,926

Post » Tue Nov 13, 2012 11:51 pm

try enabling "Unbounded Scrolling" in layout properties
Image
B
42
S
11
G
5
Posts: 269
Reputation: 10,790

Post » Wed Nov 14, 2012 1:52 am

I tried your solution but it don't works.
B
11
S
3
Posts: 133
Reputation: 1,926

Post » Thu Nov 15, 2012 1:41 pm

you can also try setting the parallax to 0 , 0 in each layer, and the layout to unbounded scrolling
Image
B
42
S
11
G
5
Posts: 269
Reputation: 10,790

Post » Thu Nov 15, 2012 1:46 pm

I'm not sure I understand your problem. Do you just want to move the viewport to the middle of the layout? If that's the case, you can use one of the "System -> Scroll to position" actions.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sat Dec 01, 2012 12:20 am

i use scale letter box and it's align in the middle.

thank you
B
11
S
3
Posts: 133
Reputation: 1,926


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests