images too big in guis with custom resolution

Started by Volcan, Sun 13/10/2019 22:55:35

Previous topic - Next topic

Volcan

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.

Crimson Wizard

Please tell, what version of AGS are you using?

Volcan


Crimson Wizard

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

#4
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?

Crimson Wizard

#5
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).

Volcan

The sprites for guis are 32x30.

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

Crimson Wizard

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


SMF spam blocked by CleanTalk