Hi Guys,
I just wanted to post an example of an inventory system that I came up with in about an hour, hopefully it can help other people if they're looking for something similar. I took inspiration from the half life series with their inventory switching system. The idea is that you use either the mouse scroll or the Q and E keys to choose your item in your inventory. When you do this, icons will appear on the screen showing which one you're selecting. The main icon will have 0 transparency while the other icons are set at 100 transparency. After a few seconds the HUD disappears.
When you scroll the mouse wheel or use the Q and E keys, it changes the selected line in a list object. Each line in the list corresponds to a matching HUD icon. The # signs in the beginning/end of the list are to test when the user scrolls at the edges of the list. The list will scroll back to the first or last item in the list if the person reaches the limits of the list. The HUD icons are contained within a qualifier titled "Inventory" so it's super easy to add or remove inventory slots. If you want to add an inventory slot, clone one of the existing ones and edit the Alterable Value "Item Slot" number and Alterable String "Item Name". Then edit the list object and add the same corresponding number in the list.
The item slot actives don't have to be in a row either, you can set them up in any shape. The second frame in the example shows the items in a circular pattern like in GTA V. I hope this helps someone
Test out the example online with this .swf build here: Please login to see this link.