How to center my game ?

Get help using Construct 2

Post » Sat Jan 09, 2016 5:42 pm

Hello,
I have do a game for smartphone on Construct 2, i have exported it but the game is not center. There are black line on the left and at the bottom of the screen. How i can center the game on the screen ?
Thank You.
B
3
Posts: 3
Reputation: 181

Post » Sat Jan 09, 2016 7:01 pm

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 » Sat Jan 09, 2016 7:38 pm

Yes, but that didn't help me. My game is on Letterbox Scale mode.
B
3
Posts: 3
Reputation: 181

Post » Sat Jan 09, 2016 8:44 pm

On letterbox mode have an event on start of layout scroll to x, y then set those values depending on your layout size.
For example if your layout size is 640x480 then that event would be "on start of layout | scroll to x:320 y:240
You have to put that event in the event sheets of all the layouts you have, and if all your layouts are the same size then you can just create a seperate event sheet(no layout needed) put the code there and then include that event sheet in all your other event sheet.
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Sat Jan 09, 2016 9:19 pm

That doesn't work
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: RogerThompson, SoldjahBoy, tunepunk and 10 guests