Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Athirwen on Thu 19/08/2004 09:23:26

Title: Inventory Problems
Post by: Athirwen on Thu 19/08/2004 09:23:26
Ok, I read the manual, and followed what it said but I still can't get it right.

I can get my sprite to pick up and object, but when I view it in the inventory it's just a blue cup. I've changed the image in the inventory items to what I want but it just won't show in the game. Help please on what to do!

Thanks!
Title: Re: Inventory Problems
Post by: TerranRich on Thu 19/08/2004 14:51:00
This is one of the OLDEST problems newbies have. Check ths out: http://www.agsforums.com/kbview.php?id=12

It's under "Knowledge Base". Didn't I mention that in the READ THIS FIRST thread?
Title: Re: Inventory Problems
Post by: Athirwen on Fri 20/08/2004 14:06:58
Sorry I did READ THIS THREAD FIRST. I followed that and it still comes up with a blue cup. As I mentioned in my first post, I have followed the tutorial and also looked at that thread. Just because I'm a newbie, doesn't mean I can't read.

Thanks for you help anyway.
Title: Re: Inventory Problems
Post by: Darth Mandarb on Fri 20/08/2004 17:04:14
Maybe ...

Make sure, when you do the 'AddInventory' command, that you're using the inventory item's number, and not the room's object number.

For example, if it's the 6th object in the room (object 5, as they start at 0) you would remove object 5 from the room when you 'pick up' that object.

However, if that particular item is item 4 in your inventory items screen, you need to add to inventory item 4, not object 5.

Does this make sense?  Am I way off?
Title: Re: Inventory Problems
Post by: Athirwen on Fri 20/08/2004 21:37:19
Thanks Darth Mandarb, that solved it. You're not way off, I'm just new to the whole AGS thing and needed a little push in the right direction.

I'm off to create my new sprite now ;)