# Inventory help

**URL:** <https://forum.kirupa.com/t/inventory-help/138696>\
**Category:** Uncategorized\
**Created:** [February 24, 2005, 4:11pm UTC](https://forum.kirupa.com/t/inventory-help/138696 "2005-02-24T16:11:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Camokid](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@Camokid](https://forum.kirupa.com/u/Camokid)\
**Post date:** [February 24, 2005, 4:11pm UTC](https://forum.kirupa.com/t/inventory-help/138696/1 "2005-02-24T16:11:19Z")

</div>

Hi All

Im in the planning stages of a game, point and click style from a first person perspective… think CSI games for a reference.

Im looking into making an inventory. Its basically a row of empty slots that are filled from left to right as you find and click a retreivable item in the game environment.

I was thinking that each slot could be referenced in an array, and as each slot is filled a var increases the array target.

However, after some thought I asked myself, what happens when an object gets taken from the inventory from a low down slot (by dragging and dropping into play area), how can i make all items to the right of the used object shift to the left to fill the gap.

And heres where you come in, any ideas? Tutorials?

Any good point & click game creation tutorials in general?

much appreciated.

Camokid
