How can I toggle things off and on using a button?

I'm re-making the cookie clicker game. Ig's getting better. But I need help with the save files and the buttons. Any help?

Coookie_Clicker.aia (7.4 MB)

I have multiple screens

SaveFile Screen:

OptionsMenu:

ErrorScreen:

Screen1: (Game)

I had trouble remembering how a DataFile works (Most people use Files), so I snapped a summary shot of the tool tips and blocks.

According to the tool tip's closing sentence, you need to use the green blocks of the DataFile component to access the rows and columns of whatever you stored in the DataFile (assuming you actually stored anything in one.)

What I want to happen is when you press the file png, it loads and opens your last saved game

Thanks for helping guys

I have looked through all 5 of your screens, and I don't see any place where you create a File and drop data into it.

Oh. How can I make one?

If you want to save data to a File, you need to know ahead of time what will be saved.

Type a few lines of data into your next post, to represent what you want to save.

Use CSV format.

What's CSV format?

I don't know how to to it. Can I get an example?