Actually adding/removing things, as far as my system goes should be done like that :
- creating the new item with its stats (default or not)
- adding his UID in one of the invSlot 'possess' instance variable
- reactivating the 'Replace' group
- destroy the item (thus completely losing its custom stats so don't do it if you just store that elswhere: on the floor, in a crate (= another inventory system)
- reseting the 'possess' instance variable of the slot to -1
- reactivating the 'Replace' group
No, not an issue the thing to do now, is more a save and store system to carry all these datas through different layout.
Basically it should be an Global Array that store the list of these items with their stats and in which slot they are (maybe each time you reactivate the replace group, or just when you change layout)
Also what's laking is a context. How you will use this example in an actuall game is important (I guess the whole UI would be in a dedicated layer, and you'll switch it's visibility on and off to show and hide it)
That's all (:
01lifeleft
We'll see but it's better if you try first. How do you think did I learn? :D
Actually making a degree on construct classic and often helping people is what made me learn fast. I only discovered scirra products last christmas.