Make sure you InventoryArr is cleared and set to 0 X-size (Set Size 0,1,1) otherwise, the array value defaults to 0. Also, make sure you destroy all of the items sprites upon entering the inventory so that you display loop can work with a clear inventory.
I actually had the same problem when I was testing this capx too.
Another option is to exclude the 0 index from your items array and put a condition in your loop that bypasses any 0 values.
all the other items that i create are being created and deleted so fast that you can't even see it being destroyed and created again
I am not sure what this means?
Keep in mind though, that every global event will run every tick (or as fast as possible); so if you have an unconditioned destroy event, it will continually destroy your items.