how to make a app remember what "items" you find even when you close the app

Hey guys I want to know how to make it so when you find items in the game and then when you close the game it will remember it then when you re open it you will still have your items. ps the items are just certain pictures in your “backpack” and it will remember the pictures and the name.

Thanks Tyler Jacobson

Build a Lua table with an ID of the item and the count that you have and then save that table using one of several table saving functions. I’m rather fond of:

https://coronalabs.com/blog/2014/10/14/tutorial-saving-and-loading-lua-tables-with-json/

You don’t need to save the images, just something to ID the object. When you load the table, you can recreate the images from whatever you used to begin with.

Rob

Build a Lua table with an ID of the item and the count that you have and then save that table using one of several table saving functions. I’m rather fond of:

https://coronalabs.com/blog/2014/10/14/tutorial-saving-and-loading-lua-tables-with-json/

You don’t need to save the images, just something to ID the object. When you load the table, you can recreate the images from whatever you used to begin with.

Rob