How do I support different resolutions on PC?

Get help using Construct 2

Post » Tue Nov 22, 2016 7:55 pm

Wanna make a game for PC, with like standard resolution of 1280,720, 1920,1080 ect.. How do I do this?


https://www.scirra.com/tutorials/73/sup ... reen-sizes This didn't help me :(
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Wed Nov 23, 2016 8:01 am

That's weird, that tut helped me out very much.
Which issues are you encountering exactly?
B
9
S
4
G
1
Posts: 33
Reputation: 873

Post » Wed Nov 23, 2016 4:51 pm

Walessio wrote:That's weird, that tut helped me out very much.
Which issues are you encountering exactly?


I want people to be able to have a options tab where people can control the resolution of the program (game)
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Wed Nov 23, 2016 5:00 pm

You can't. No doubt a limitation of using browser technology. C2/NWjs fullscreen mode is just a borderless window scaled up to fill the screen.
B
40
S
16
G
6
Posts: 543
Reputation: 7,649

Post » Wed Nov 23, 2016 5:40 pm

all screen size and resolutions are supported automatically with the right settings eg letterbox scaling / full screen scaling / high DPI / linear sampling etc...your decisions rest around window size / resolution / aspect ratio and producing your art assets at a resolution to suit.

I think what you are talking about is letting the user set the window size from within the game.

im assuming it should be possible, maybe with a layer reset.

it would be interesting to know if you can do this.

why don't you give it a try and let us know.....
...
B
47
S
25
G
7
Posts: 365
Reputation: 8,436

Post » Thu Nov 24, 2016 8:06 am

In your place I'd try to produce assets with the higher resolution and downscale the layer (lowering the layer scale.x and y) accordingly when the user selects a lower res. (that would also mean that the screen ratio should be fixed)
Yet you should consider that using higher res. assets downscaled could give performances issues and to solve that you should provide different res for your assets too.
Make some tests about this argument and tell us what you have discovered
B
9
S
4
G
1
Posts: 33
Reputation: 873


Return to How do I....?

Who is online

Users browsing this forum: work3 and 8 guests