Me and a group of other students are working on a platformer game using Construct 2 for an assignment, we came across one little problem however and that was the fact that the player could grind coins by replaying a level over and over again.
After a bit of searching we found out about the Presist behaviour which seemed to fix our issues at first, coins would not respawn on replaying the level.
However we soon discovered that they didn't even come back on a layout restart, meaning that if the player died and had to start that level over the coins would still be gone, which is something we don't want in our game.
How would we go about ignoring the Persist behaviour on objects whenever it's required?
To sum it up:
-Coins should not respawn on a level that the player already finished
-Coins SHOULD respawn when a player dies in a level
-On levels that players DID finish but didn't collect all the coins on they should be able to go back and get those coins, but on player death on that level only the coins the player didn't pick up before should respawn.
Thanks in advance!