Fullscreen scaling

Get help using Construct 2

Post » Tue Jan 17, 2012 8:38 pm

I have set window size in project properties to 1680x945 (yes that size is intentional!) and full screen is set to Scaled.

Previews run in fullscreen mode at a 1680x1050 resolution. According to the manual I should be seeing isotropic scaling with parts of the screen being blank (since project window height is ca. 100 pixels too small).
http://www.scirra.com/tutorials/73/supporting-multiple-screen-sizes/page-1

However, I am using a SpaceBlaster like vertical layout that's much larger than 1680x945 and when previewing the game Construct2 actually fills the entire screen- there is no black border. Is that intended behavior?
B
12
S
3
G
3
Posts: 73
Reputation: 2,647

Post » Tue Jan 17, 2012 9:58 pm

In case this was too confusing. Try this:
open SpaceBlaster, set Project Properties to Full Screen: on (scaled) and window size to your screen width but make the height only half your screen height, e.g. 1280x500. Change the game layout to your screen width, and make the background tiles wider as well. Run game. It's now filling the entire screen despite the weird window size we picked.Cross_2012-01-17 21:59:17
B
12
S
3
G
3
Posts: 73
Reputation: 2,647

Post » Tue Jan 17, 2012 10:20 pm

Fullscreen scaling never adds black bars - where on the tutorial did you think it said that? It's on our todo list to add a 'barred' fullscreen scaling mode.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue Jan 17, 2012 10:42 pm

Based on this:
[quote]Scaling mode zooms according to the aspect ratio. If your window size is square and you resize the window to a rectangle, the game will scale to fit a square in the middle of the window, with extra space at the sides.[/quote]

If my window aspect ratio is set to 2:1 I would expect it to remain 2:1 with "extra space at the sides". That's not the behavior I am seeing though.
B
12
S
3
G
3
Posts: 73
Reputation: 2,647

Post » Tue Jan 17, 2012 10:47 pm

Ah, extra space at the sides means more of your layout showing, not black bars... I'll edit the tutorial to clarify.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue Jan 17, 2012 10:52 pm

What's the point of using scale mode then? In this case scale and crop mode yield identical results- a player with a larger screen will see more of the playfield (leading to an unfair advantage).
B
12
S
3
G
3
Posts: 73
Reputation: 2,647

Post » Tue Jan 17, 2012 11:05 pm

Scale mode adjusts the layout zoom whereas crop mode doesn't. Scale mode only shows more of the layout if the aspect ratio of the window changes, whereas crop mode always shows more if the window is bigger.

The feature is designed for mobiles and tablets with different sized screens with roughly the same aspect ratios (no extremities anyway, like you can get by resizing a browser window to weird shapes). You could try adding your own black bars with some black Tiled Background objects on the top layer.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue Jan 17, 2012 11:42 pm

I'm looking forward to the black bar fullscreen scale too.
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Tue Jan 17, 2012 11:52 pm

You can do the black bars yourself with events. Probably a lot more flexible than as a project setting.
B
55
S
12
G
8
Posts: 339
Reputation: 9,314


Return to How do I....?

Who is online

Users browsing this forum: currypuff, makotto and 24 guests