Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Blano on Thu 27/08/2020 18:36:18

Title: [SOLVED] super tiny inventory item sprites, why and can i restore them?
Post by: Blano on Thu 27/08/2020 18:36:18
hi, i'm really new to Ags and i cannot figure why my items sprite are soooooo little (like 6x6 px).. ant idea why, how can i set a major size?
if i open another project they seems to be the right size.. do you think it's caused by some module and/or setting? let me know!
Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Crimson Wizard on Thu 27/08/2020 18:46:10
Are they shown too small in the editor, in game, or both? What is the actual sprite size and what's your game resolution?

(You can check imported sprite's size if you select it in the sprite manager and read the properties)

Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Blano on Thu 27/08/2020 19:48:28
They're small just in the items editor, i cant set the right hotspot on them

edit:
they're about 70x70, checked in the sprite editor and nothing seems wrong!

i'm working on high-res game so i'ts 1920x1080
Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Crimson Wizard on Thu 27/08/2020 20:05:04
Quote from: Blano on Thu 27/08/2020 19:48:28
They're small just in the items editor, i cant set the right hotspot on them

This sounds like a bug we found a while ago, can you try installing the most recent patch: https://www.adventuregamestudio.co.uk/forums/index.php?topic=58350.0

Oops sorry, nevermind, that problem was in low-res games, not high res.
Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Blano on Thu 27/08/2020 20:32:37
hi Crimson Wizard!

the problem seems to be in the resolution, i tried starting a new project, the default cup and key ar ok, when i change resolution are smaller, when i import the new graphic it's a 6x6 px again... maybe the sprite resolution? i'll give a try


edit

ok i think it's because the inventory item editor has an amount of pxs that are scaled when i set a hi res..(hope to be understandable)
Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Crimson Wizard on Thu 27/08/2020 21:00:03
Which version of AGS are you using exactly? This may be found in Help->About dialog. I'll try to test how it works too.
Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Blano on Fri 28/08/2020 04:52:13
3.5.0 patch 3
Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Crimson Wizard on Fri 28/08/2020 15:35:38
I see now, for some reason the inventory item preview is scaled down to the size of the original sprite, which could be much smaller. I will look to fix this in next patch.

Meanwhile, it should be possible to set hotspot coordinates directly by editing properties HotspotX and HotspotY.
Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Blano on Sat 29/08/2020 00:19:33
Thank you! your help is always useful! bye
Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Crimson Wizard on Sat 29/08/2020 02:06:55
An update, apparently CursorImage and Image references were messed in this editor, so it may sometimes use CursorImage's size when drawing Image, and Image's size when drawing CursorImage. Try reassigning them both to your item to achieve a "fix".
Title: Re: super tiny inventory item sprites, why and can i restore them?
Post by: Blano on Sat 29/08/2020 06:59:36
YES!!!!! IT WORKS!! Thank you again! i really appreciate your help!!