How do I stop a coin from reappearing?

Hi guys,
How do I stop a coin from reappearing?
A simple platformer, 3 coins a level, if they complete the level, how do I stop the coins they collected from coming back when they re-try the level?

Global Variable for all 3 coins, separately?
Global Variable for all 1 coin, and use instances?
Separate sprite for each coin?
Other?

Thanks
Jim

just guessing, might not work…try putting trigger once

Structured global variable maybe

“just guessing, might not work…try putting trigger once”
Nope, not worked but thanks.

“Structured global variable maybe”
Ta, trying now.

Works, looks like every coin!

In this way the coin is no more created if you start the scene again. Take off “set coin1 to 0” and add “at the beginning of the scene” in conditions for creating just one coin

Perfect, thanks.
jim