Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Devillia59 on Sun 23/08/2020 10:52:50

Title: Inventory sprites overlapping
Post by: Devillia59 on Sun 23/08/2020 10:52:50
Hi All,

This is my first ever post here, currently making my first point and click adventure  :smiley:

I currently have a problem with my sprite icons overlapping within the inventory window of a BASS format template.
I have checked the documentation and am not sure where I need to insert text to set the individual inventory items width and height in the inventory window within the scripts as there is no reference to an inventory window, just references to the inventory GUI?
Do I do this within the global script or the inventory GUI and if so within which section of the script or GUI?

If you can help me thank you  :smiley:
Title: Re: Inventory sprites overlapping
Post by: Slasher on Sun 23/08/2020 10:58:58
You usually open the Inventory gui... click on inventory window and change item width and height in the properties panel on the right..
Title: Re: Inventory sprites overlapping
Post by: Devillia59 on Sun 23/08/2020 16:57:33
The inventory window is bigger than I need, at the moment the inventory items are being bunched up and I want to space these individual items out you see? Not sure where I need to do that?  :undecided:
Title: Re: Inventory sprites overlapping
Post by: Crimson Wizard on Sun 23/08/2020 17:49:54
In AGS individual items do not have Width and Height, for some reason.
But InventoryWindow has two properties: ItemWidth and ItemHeight. They determine how the items are arranged withing that window.

You may change these either in the editor, by selecting inventory window and editing values in property panel, or in script.
In BASS template inventory window is called "invCustom", so that would be "invCustom.ItemWidth = 10;" for example.
Title: Re: Inventory sprites overlapping
Post by: Devillia59 on Mon 24/08/2020 16:28:58
Ok I see what you mean, seems to work now dimensions just needs tweaking, thank you.  :)