I'm In Need of Help Concerning Inventory Images [SOLVED]

Started by Pifflestick, Wed 10/10/2007 05:51:15

Previous topic - Next topic

Pifflestick

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.

Gilbert

The infamous Blue Cup 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.

Pifflestick

#2
Can you rephrase that? I don't understand.

Ashen

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.)
I know what you're thinking ... Don't think that.

Pifflestick

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.

Khris

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.


auriond

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?

Khris

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.

Pifflestick

Its still a blue cup! Could someone post images of what to do?

auriond

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.



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.

Pifflestick

Thank you! Its finally showing up as a key!

SMF spam blocked by CleanTalk