Saving options with tables?

Hey guys,
I know this is supposed to be really simple but I'm having difficulties saving 3 boolean attributes into a table and then loaded when the game is opened.

I have 3 boolean options. When one is changed in the options scene, I change the attribute with a "Change Attribute" (e.g. set game.option1 to false) and then I also have a "Change Table Value" where I change the value in the correct table, row & column to that attribute (i.e. game.option1).

I do this for each option for when they are toggled.

On the main scene (the first one when the game is opened), I have a 3 "Change Attribute" rules that set game.option1, 2 and 3 to tableCellValue(game.table, x, y) to their respective option.

I have no idea if I am doing any of this right (I assume I'm not even close because when I try testing it, the options don't save when I restart the game with the little circle arrow thing in the preview)

Hopefully someone can help me here.

Thanks!

Daniel

Comments

Sign In or Register to comment.