Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: jonsqu on Sat 22/08/2015 20:52:38

Title: Despite tutorial, object not appearing in inventory.
Post by: jonsqu on Sat 22/08/2015 20:52:38
In part 4 of "Getting Started With AGS", which goes over Objects, it attempts to teach me how to add a key into the game environment, pick it up, and have it go into my inventory. The key is visible, and disappears when I "interact" with it (use the hand icon), even some code I added myself that lets me look at the key works. But the key does not appear in my inventory, only a series of empty black squares do.

Here is the portion of the tutorial. (http://i.imgur.com/HSEvuA7.png)

Here is my room script. (http://i.imgur.com/mA4hxrw.png)

And here is what happens in-game. (http://i.imgur.com/380MB4l.gifv)

Reading ahead in the tutorial, the key is supposed to be visible at this time.

Thanks in advance.
Title: Re: Despite tutorial, object not appearing in inventory.
Post by: Cassiebsg on Sat 22/08/2015 21:30:41
What version of AGS you using?
Seems like you need to re-import the sprites to match your new resolution.
Title: Re: Despite tutorial, object not appearing in inventory.
Post by: jonsqu on Sat 22/08/2015 21:41:17
I am using AGS 3.3.4.

The only custom artwork in this is the background, if that's important. Everything else was included in the template.

If I do need to re-import things, how would I go about doing that correctly?

Thanks for your response.
Title: Re: Despite tutorial, object not appearing in inventory.
Post by: Crimson Wizard on Sat 22/08/2015 22:51:58
Do you set your game to 32-bit colors?
Default template has 8-bit button graphics, that do not work in 32-bit mode.
Try exporting them and resaving as 32-bit bitmaps, then re-import again. Or import your own icons.
Title: Re: Despite tutorial, object not appearing in inventory.
Post by: jonsqu on Sun 23/08/2015 00:00:12
That appears to have been the problem, and it's easily fixed now. Thanks, Crimson.