saving multiple frames- example or detailed explanation using associative array
I've stopped working on my platformer game for weeks(except drawing my graphics), because I can't find a way to save the game with multiple frames. I found a helpful example by nivram using the associative array object, but I don't understand how to save the player position and the collected coin at other frames.
For my platformer I must save at least the player character position and deleted items(for items which give the player character special movement abilities). If there is a simple way, I would also like to know how to save the direction of the player character and position + direction of creatures and enemies (for multiple frames!).