Greetings there! ^_^So to make an inventory, i figured a different Layout would fit better - but that resets the layout which u were on when u return back, position and enemies etc.

So my question is, is the fix for the above hard? Or should one go with a Layer inventory type? Set layer visible/invisible?Though wont that lag or so if there are already 100+, objects on the former layers??

You can set items to global in the properties to have them keep their values when navigating between layouts. Is it a very basic inventory though because usually you would make one with an array and send the data to game rather than make one that is 100% graphics based. You are implying that you are going to start hiding inventory stuff that you're not using. With an array you can create slots and send the item data to game and display the graphics you want without the need to hide anything, although I don't know what your game is so this might not be relevant.

plinkie wrote:You can set items to global in the properties to have them keep their values when navigating between layouts. Is it a very basic inventory though because usually you would make one with an array and send the data to game rather than make one that is 100% graphics based. You are implying that you are going to start hiding inventory stuff that you're not using. With an array you can create slots and send the item data to game and display the graphics you want without the need to hide anything, although I don't know what your game is so this might not be relevant.

RPG games - it does look like they use a different layer for a full screen inventory - but this resets monsters on other layouts.Maybe somehow with an array, but with many slots, this may become a bit hard haha xD

Yes array is what you need to store the items and then display them. It is particularly good when you have a number of items but are also calculating an amount of them, say a number of health potions. You're right that it can go to a different layout, or you can display a hidden layer, either one will do. If you go to a new layout, normally the array will update on start of layout so you have all the data each time so that solves your problem. The only difficult bit now is in learning arrays but they are powerful once you have control of them. There are a few nice tutorials about to help you with creating slots and understanding arrays : https://www.scirra.com/tutorials/583/ea ... g-an-array