i am looking for pseudocode or code example.
i cant figure out how to create an inventory system for an RPG Style test. My intention is to get some ideas to make it work.
what i wanto to achieve is the following:
1. the character clicks on an it that is on the ground (gold, charm, weapon, etc, any)
2. the items goes to the "Inventory System" (a backpack or a )
3. the item dimension is 1 space, the inventory (the backpack) has 32 spaces
how to display the items in the inventory sorted inside the backpack? maybe this is the more difficult situation for the Inventory System.
thanks for any idea.
i cant figure out how to create an inventory system for an RPG Style test. My intention is to get some ideas to make it work.
what i wanto to achieve is the following:
1. the character clicks on an it that is on the ground (gold, charm, weapon, etc, any)
2. the items goes to the "Inventory System" (a backpack or a )
3. the item dimension is 1 space, the inventory (the backpack) has 32 spaces
how to display the items in the inventory sorted inside the backpack? maybe this is the more difficult situation for the Inventory System.
thanks for any idea.