Jibble

Author Topic: images too big in guis with custom resolution  (Read 154 times)

Volcan

  • I like making adventure games and flash movies
    • Volcan worked on one or more games that was nominated for an AGS Award!
images too big in guis with custom resolution
« on: 13 Oct 2019, 22:55 »
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/

I set sprites images to high and low resolution.

I tried resize and no resize when changing resolution.
« Last Edit: 13 Oct 2019, 22:58 by Volcan »

Re: images too big in guis with custom resolution
« Reply #1 on: 13 Oct 2019, 22:59 »
Please tell, what version of AGS are you using?

Volcan

  • I like making adventure games and flash movies
    • Volcan worked on one or more games that was nominated for an AGS Award!
Re: images too big in guis with custom resolution
« Reply #2 on: 13 Oct 2019, 23:02 »
AGS 3.4.1

Re: images too big in guis with custom resolution
« Reply #3 on: 13 Oct 2019, 23:06 »
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.

Volcan

  • I like making adventure games and flash movies
    • Volcan worked on one or more games that was nominated for an AGS Award!
Re: images too big in guis with custom resolution
« Reply #4 on: 13 Oct 2019, 23:19 »
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?
« Last Edit: 13 Oct 2019, 23:22 by Volcan »

Re: images too big in guis with custom resolution
« Reply #5 on: 13 Oct 2019, 23:30 »
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.


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).
« Last Edit: 13 Oct 2019, 23:32 by Crimson Wizard »

Volcan

  • I like making adventure games and flash movies
    • Volcan worked on one or more games that was nominated for an AGS Award!
Re: images too big in guis with custom resolution
« Reply #6 on: 13 Oct 2019, 23:35 »
The sprites for guis are 32x30.

The buttons for guis are 32x30 since I decided to keep original sizes.

Re: images too big in guis with custom resolution
« Reply #7 on: 14 Oct 2019, 00:22 »
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.

Volcan

  • I like making adventure games and flash movies
    • Volcan worked on one or more games that was nominated for an AGS Award!
Re: images too big in guis with custom resolution
« Reply #8 on: 14 Oct 2019, 00:50 »
Thanks. It works fine.

 ;-D ;-D ;-D