So I made a 2d platformer with coins, although whenever a player dies, I want them to lose the coins that they have collected for that level only. The thing is, I don't want them to lose all the coins for the level, only the ones they have collected. Is there any way to do this? Thanks.