I'm new to C2 and I try to design a platform game but I encouter a problem with my scoring experience.
Basically, the player collects coins through the level and get a score. My problem arises when I restart the layout before the end of the level (for example, the player falls down or touches an enemy therefore the player is killed) so I need to restart the layout to try again). But, when I restart the layout, the coin already collected in the level will automatically reappear despite the fact I create an destroy event for the coin.
So in the event sheet I have:
Condition: Player on collision with coin, Action: Coin destroy, Action add 1 to Score (glob var) and Coin set invisible.
Thanks for your help!