Well. I´ve got a file wich shows in screen a ball, a bunch of spikes and 3 coins. If the ball touchs the spikes, the screen go to game over and it saves the coins gotten. Then, if you press the retry button and got any coin, that coin also save it, even if before don’t touch the spikes. I don’t know why.
Press here to try my test file.
The small blue ball resets the data.