Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Zany on Thu 12/10/2017 10:52:33

Title: Inventory Item has appeared in the same area as another 1
Post by: Zany on Thu 12/10/2017 10:52:33
So I have been storing inventory items and recently I created an item which the users starts with however after that some strange thing has happened where another item that is stored, gets stored in the same area as the starting item, any reason as to why?
Title: Re: Inventory Item has appeared in the same area as another 1
Post by: Khris on Thu 12/10/2017 14:07:47
You mean inside the inventory window? How big are the sprites for your items? When AGS draws them, it uses the InvWindow's ItemWidth and ItemHeight properties for the size of a grid cell.
Title: Re: Inventory Item has appeared in the same area as another 1
Post by: Zany on Fri 13/10/2017 08:54:13
Mu current size of inventory items are 27x27, so as soon I make a new row it over laps slightly is their a way to shift my second row of items slightly downer.
Title: Re: Inventory Item has appeared in the same area as another 1
Post by: Slasher on Fri 13/10/2017 10:29:13
QuoteMu current size of inventory items are 27x27, so as soon I make a new row it over laps slightly is their a way to shift my second row of items slightly downe
Yes.  In the Editor open up the gui that has your inventory items. Select the inventory window of that gui.. In the inv window properties box look at 'Apperance' and you will see ItemHeight and ItemWidth.  Adjust to to suit so items fit in nicely with a gap between them. In your case I'd say set to 31 x 31 or thereabouts.
Title: Re: Inventory Item has appeared in the same area as another 1
Post by: Zany on Fri 13/10/2017 13:53:23
Thank You so much...
Title: Re: Inventory Item has appeared in the same area as another 1
Post by: Khris on Fri 13/10/2017 13:59:50
Just in case you didn't notice:

Quote from: Khris on Thu 12/10/2017 14:07:47When AGS draws them, it uses the InvWindow's ItemWidth and ItemHeight properties for the size of a grid cell.