Sorry if this has been asked before, I tried searching a few times but couldn't seem to pull up anything useful.

Anyways, here goes.

I am making a platformer. Every level of said platformer is a frame, and most levels have coins that the player collects. The player is able to go back and forth between the levels.

My question is, how can I make it so that once a coin is collected, it wont reappear if/when the player goes back to that level?

Any form of help is appreciated.