Window resizing not working as expected

For questions about using Classic.

Post » Tue Aug 10, 2010 8:54 am

Hi guys,

I have this game that has a Window Width and Height of 800px. I want to be able to change the window size to 600x600 and 1000x1000 at the click of a button.

I tried using the Window object and "set size" to 600x600. Unfortunately, the output showed pixelation and scraggy edges. I searched the forums and some said to changed the Sampling to point and text rendering to aliased, but still no luck.

How can I change the window without pixelation? Thanks!
B
3
S
1
G
2
Posts: 86
Reputation: 997

Post » Tue Aug 10, 2010 12:24 pm

I've only messed around with window resizing in one project
but from what I can tell, the best solution is to have your game start at the very max resolution you will want it to be at
then immediately switch to the starting resolution
then when you switch resolutions it won't pixelate or blur
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Aug 10, 2010 2:44 pm

I still recommend using "Set display size" (because of some unsuspected behaviors of the window object).

viewtopic.php?f=3&t=6692&p=52710#p52710
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Tue Aug 10, 2010 3:56 pm

[quote="lucid":1rk9wsmd]I've only messed around with window resizing in one project
but from what I can tell, the best solution is to have your game start at the very max resolution you will want it to be at
then immediately switch to the starting resolution
then when you switch resolutions it won't pixelate or blur[/quote:1rk9wsmd]

Oh yeah, that could help. Unfortunately, my art assets are already fixed. If I don't find an alternative solution I might do this. Thanks lucid!

[quote="tulamide":1rk9wsmd]I still recommend using "Set display size" (because of some unsuspected behaviors of the window object).

viewtopic.php?f=3&t=6692&p=52710#p52710[/quote:1rk9wsmd]
Hi tulamide, I've tried that when I read it before but it wasn't working. Particularly the zooming. Might try it again, and see what would happen.
B
3
S
1
G
2
Posts: 86
Reputation: 997


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests