[Suggestion] Vertically centered fullscreen mode

Discussion and feedback on Construct 2

Post » Fri Nov 18, 2011 12:27 pm

Would it possible to add an option to center the layout vertically and/or horizontally in the window, when exporting as 'fullscreen in browser'?

ie. If I use a layout with a 16x9 aspect ratio, and export as fullscreen in scale mode that is centered horizontally, and then run the game on a 4x3 monitor in fullscreen... I could quite easily add black bars onto a non-scrolling layer to retain the 16x9 aspect ratio quite well... or just leave out the black bars, allowing fullscreen on any ratio monitor, but with the main area sensibly placed in the center of the screen rather than sitting at the top with a whole lot of extra space underneath.

Does that make sense?
B
28
S
7
G
7
Posts: 102
Reputation: 6,483

Post » Fri Nov 18, 2011 12:45 pm

If I understood this properly, it's already there:


Set the Unbounded Scrolling to YES when using Full Screen and it's centered.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Fri Nov 18, 2011 1:31 pm

Thanks for the suggestion, but maybe I didn't explain myself as well as I thought. I tried to say that I basically want control over the shape of the viewable area, while allowing for browser resizing and fullscreen mode.

I want it to be letterbox on monitors that aren't as wide as the layout, and pillarbox on monitors that are wider than the layout... and in doing this the viewable area would, of course, need to be centered vertically and horizontally.

I don't really understand how unbounded scrolling is related to this, and I would prefer to not have to sacrifice this option in order to get it working the way I want... hence the 'suggestion' for it to be built into C2 as a feature.

In any case, in fiddling with this, I've just realised that I can't get any HUD type object to scale properly when exporting as fullscreen in browser... but I'm far too tired to work it out now.

B
28
S
7
G
7
Posts: 102
Reputation: 6,483

Post » Fri Nov 18, 2011 1:39 pm

Have you checked this tutorial ?
I haven't messed with resolutions yet but I'm pretty sure all the answers lie here.
At least, the part about HUD is covered.
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 » Fri Nov 18, 2011 2:01 pm

At first the example file used in the tutorial works great... that is until I want to scroll around and then the letterbox/pillarbox effect disappears, presumably because it wasn't a real letterbox, just a case of the layout being exactly the right shape and revealing black bars *behind* the rest of the layout. I want the bars to be there no matter what I happen to do with my game... as it stands, this only works well if the layout is exactly the same size as the output window.

Also, as soon as I want the HUD to scale with the window like everything else... it gets totally lost.

Darn. I was under the impression that C2 would handle the various requirements of differing aspect ratios better than CC. I have to stand by my original suggestion... it needs to be built into C2 properly.

Thanks for the help guys.
B
28
S
7
G
7
Posts: 102
Reputation: 6,483

Post » Fri Nov 18, 2011 3:04 pm

I was going to add "black bars" as another fullscreen mode (scale + bars) so hopefully that would fix it.

As for HUDs not scaling, that's kind of a bug, I made the HUD not scale at all in the tutorial because it's not really supported. I'll see if I can fix that for a future build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518


Return to Construct 2 General

Who is online

Users browsing this forum: Avengium, DonpatchXD, Prominent and 14 guests