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.
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.
Can you rephrase that? I don't understand.
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.)
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.
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.
Its still a blue cup ingame.
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?
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.
Its still a blue cup! Could someone post images of what to do?
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.
Thank you! Its finally showing up as a key!