Ogniok
Member
|
Stackable items in Inventory
Hi.
In my game i need to allow players to stack items in their inventory. Currently, I'm using inventory from Esenthel tutorial. Is there any way to change this that it will allow users to stack only certain types of items?
Thanks for any help, because i don't have any ideas for it. ;]
And sorry for my english. ;]
|
|
04-21-2011 07:36 PM |
|
rndbit
Member
|
RE: Stackable items in Inventory
there is. good luck.
|
|
04-21-2011 08:41 PM |
|
Ogniok
Member
|
RE: Stackable items in Inventory
Barthap's idea was to point items in list to items stacks. Currently, I'm writing new inventory class which will handle stackable items and many more. ;]
|
|
04-21-2011 10:06 PM |
|
Dynad
Member
|
RE: Stackable items in Inventory
Why making a list? just check how many items you have and set a counter for that item. There is no need to keep all item objects in memory..
There is always evil somewhere, you just have to look for it properly.
|
|
04-21-2011 10:28 PM |
|