Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Volcan on Sun 13/10/2019 22:55:35

Title: images too big in guis with custom resolution
Post by: Volcan on Sun 13/10/2019 22:55:35
I set my game to 400x240 for 16:9 resolution.

Somehow, the images of the guis are too big.

https://atariage.com/forums/gallery/image/31702-bandicam-2019-10-13-17-31-50-356png/ (https://atariage.com/forums/gallery/image/31702-bandicam-2019-10-13-17-31-50-356png/)

I set sprites images to high and low resolution.

I tried resize and no resize when changing resolution.
Title: Re: images too big in guis with custom resolution
Post by: Crimson Wizard on Sun 13/10/2019 22:59:45
Please tell, what version of AGS are you using?
Title: Re: images too big in guis with custom resolution
Post by: Volcan on Sun 13/10/2019 23:02:17
AGS 3.4.1
Title: Re: images too big in guis with custom resolution
Post by: Crimson Wizard on Sun 13/10/2019 23:06:14
If your game is 400x240 then you game is considered "low resolution" (if I remember correctly, the rules for that are rather arbitrary).
This means that if you set sprites to "low-res" then they won't be scaled and drawn in their real size.

Assuming you reset these sprites to "low-res", you need to check what is the actual size of buttons and actual size of sprites, as told by their properties.
Title: Re: images too big in guis with custom resolution
Post by: Volcan on Sun 13/10/2019 23:19:54
I checked everything.

The images, guis.

When I replace another image, it sets itself to high. Set it low.

I get the same result.

Based on documentation 320x240 is low. Above 320x240 is high.

So 400x240 is high.

Is there a way to prevent ags to scale images?
Title: Re: images too big in guis with custom resolution
Post by: Crimson Wizard on Sun 13/10/2019 23:30:38
Quote from: Volcan on Sun 13/10/2019 23:19:54
Based on documentation 320x240 is low. Above 320x240 is high.

So 400x240 is high.

Yes, this must be correct, I forgot how it works already.

But without knowing what are button and sprite sizes I cannot tell if above behavior is a bug or not.


Quote from: Volcan on Sun 13/10/2019 23:19:54
Is there a way to prevent ags to scale images?

Before AGS 3.5.0: mark sprites as low-res or high-res to match game resolution.
If upgraded to AGS 3.5.0: mark sprites as "real resolution" (new default) and/or set "Allow relative asset resolution" to false in general settings (also default).
Title: Re: images too big in guis with custom resolution
Post by: Volcan on Sun 13/10/2019 23:35:23
The sprites for guis are 32x30.

The buttons for guis are 32x30 since I decided to keep original sizes.
Title: Re: images too big in guis with custom resolution
Post by: Crimson Wizard on Mon 14/10/2019 00:22:48
I made an experiment:
* created a new game in AGS 3.4.1, based on Sierra template.
* changed resolution to 400x240. Did NOT resize GUI.
* changed all sprites to "hi-res" (lots of clicking....).

Both sprite and toolbar icons are 32x27, and sprite sizes are matching button sizes, both in editor and game.
Title: Re: images too big in guis with custom resolution
Post by: Volcan on Mon 14/10/2019 00:50:25
Thanks. It works fine.

;-D ;-D ;-D