centre canvas in app screen

Get help using Construct 2

Post » Mon Jan 09, 2012 10:58 pm

Hi, i bought c2 a few weeks ago and have built a game and used phonegap to port to android.
I have c2 set up to rescale to window size (not crop), but it is left aligned when previewing in construct 2 and when it is recreated as an app. does anyone know how to force the canvas to display centred?
Many thanks,
Andy
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Mon Jan 09, 2012 11:05 pm

In the layout properties set unbounded scrolling to yes.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Jan 09, 2012 11:05 pm

Yep, you just asked what I've asked 5 min ago..
It's probably something with the index.html
allign:center;

but not sure, someone will come up with the right answer.

EDIT:Yeah, I was wrong =(SplashHunt2012-01-09 23:09:54
B
5
S
1
G
2
Posts: 44
Reputation: 1,470

Post » Mon Jan 09, 2012 11:07 pm

Hello AndyWatson

Sounds like what I was just trying to figure out. This page might help just read all the posts here:

who check my game on mobile
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Mon Jan 09, 2012 11:13 pm

Thanks for all the help, i'll check out unbounded scrolling tomorrow, much appreciated.
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Tue Jan 10, 2012 9:55 am

[QUOTE=Kyatric] In the layout properties set unbounded scrolling to yes.[/QUOTE]

Thanks Kyatric, perfect, just what I needed!
B
31
S
11
G
7
Posts: 197
Reputation: 6,682


Return to How do I....?

Who is online

Users browsing this forum: Colorfish, Waltuo, Yahoo [Bot] and 4 guests