Main menu:
Some games, such as the FATE series, allow the player to pick up various equipment and items. Such systems allow the player to interact with the in-game enviroment in a meaningful way, possibly resulting in an enhanced game experience This tutorial will guide you how to properly create such an inventory system and explain its various mechanics/components.
Quick Links:
Practically, the easiest way to have a space-based inventory system would be as follows:
The entire inventory will be composed of smaller inventory slots
Move item when the item has been selected
Check to see if any invalid moves occur (two items overlapping, an item partially off the screen, etc...)
Restore X-Position/Y-Position of selected object if any invalid moves occur
These four statements compromise the fundamentals for this tutorial. Everything done will be relating to one of these four elements.