I was wondering if there is a way to set the player's coins back to what they were at the last checkpoint.
Right now, if I hit a checkpoint with 10 coins, go collect 50 more coins and then die, then I respawn at the checkpoint with 60 coins, and I can go collect all those coins again for a total of 110. Depending on how many lives I have, I can exploit the system and get super rich too quickly lol.
Is there some code I can put into the looping section to fix it?