So this is something I have been messing with. It's an Array based inventory that is created and destroyed every time it is opened or closed to save on memory usage. I made it in the style of the Terraria Inventory because that is one of my favorites. So far you can pick up items it keeps track of them how many of each you have. You can click and move items around in the inventory. The next feature I will add is the ability to drop items. Then after that I want to move onto a crafting system which should be fun. Link to check it out below as well as the .capx if anyone wants to poke around and see how it works or use it in their game.
CONTROLS
WSAD-MOVE
TAB- Toggle Inventory
LEFT CLICK- Select item in inventory to move it.
Game Link
https://dl.dropboxusercontent.com/u/729 ... index.html
.CAPX Link
https://dl.dropboxusercontent.com/u/729 ... ntory.capx
If you have clicked on the link before you may have to refresh once you get to the game to the get the most recent build.
If you mess around in the .CAPX and are able to streamline the code or fix any redundancies please let me know so I can make it more efficient.