Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Pifflestick on Wed 10/10/2007 05:51:15

Title: I'm In Need of Help Concerning Inventory Images [SOLVED]
Post by: Pifflestick on Wed 10/10/2007 05:51:15
Hello, I'm trying to make my first game and I am having trouble with the inventory item image. I put the key on the level and that went without a hitch, I set up the interactions and that worked fine, but when I changed the inventory image and tested the game the key came up in the inventory as a mug. If anyone knows what to do please reply to my topic.
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: Gilbert on Wed 10/10/2007 06:18:54
The infamous Blue Cup (http://www.adventuregamestudio.co.uk/kbview.php?id=12) problem. :=
Check whether the inventory graphics is indeed set to a valid slot, otherwise it will be reverted to the almighty standard blue cup sprite.
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: Pifflestick on Thu 11/10/2007 00:01:57
Can you rephrase that? I don't understand.
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: Ashen on Thu 11/10/2007 00:12:29
To put it another way:
What graphic (sprite slot number) did you change the image to? Are you sure it actually exists? (For example, if you set it in script, or using a DynamicSprite, the spriteslot may not be valid.)
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: Pifflestick on Thu 11/10/2007 00:18:54
Again, I don't understand. I just downloaded this and I have no idea about what the tech speak means. Also, I read the page and it said go to RoomEdit and go to the Game tab and click Inventory but I tried and I can't find the Inventory button.
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: Khris on Thu 11/10/2007 00:35:45
I think you're in need of reading the tutorial in the manual.

The page Gilbot linked you to is outdated. In AGS, there's a tree to the left side, containing items like "General settings", "Palette", "Characters" and so on.
"Inventory" is among them. Select it, select the inventory item in the column next to (or create a new one) then choose the sprite.
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: Pifflestick on Thu 11/10/2007 00:40:31
Its still a blue cup ingame.
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: auriond on Thu 11/10/2007 12:55:19
How did you change the graphic?

In order to successfully change the graphic of an object, you need to either:

1. Import the new graphic you want OVER the old graphic (in this case, the key), OR

2. Import a new image, go to the room with the object, select the object, click "Change image..." and select the new graphic

Which one did you do?
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: Khris on Thu 11/10/2007 13:13:24
After selecting the key in the list of inventory items, the selected sprite is displayed beneath the button "Change image...".
If there's just an empty grey space, click said button and select the sprite from the Sprite manager.
And yes, it's really that simple.
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: Pifflestick on Thu 11/10/2007 23:18:25
Its still a blue cup! Could someone post images of what to do?
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: auriond on Sat 13/10/2007 02:39:38
OH. I just reread your original post and I think I know what you mean.

Let me see if I'm getting you right:

1. You have a key in the room.
2. Your character picks up the key. The key vanishes from the room and appears in your inventory.
3. However, what appears in your inventory is a blue cup and not a key.

Is that correct?

Anyway, here's a series of pictures to show how to set up the scenario I just described.

(http://images.wynhost.com/change_object_image.png)

Did that help? Or do you want to change it to your own new picture? There's a few more extra steps (where you have to import your own picture) if you want to do that.
Title: Re: I'm In Need of Help Concerning Inventory Images
Post by: Pifflestick on Mon 15/10/2007 03:01:08
Thank you! Its finally showing up as a key!