Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Cyborg_Sam on October 07, 2015, 07:37:59 PM

Title: Saving Coin Collection Problem
Post by: Cyborg_Sam on October 07, 2015, 07:37:59 PM
Hi Guys

Need your help.

I have managed to follow a few amazing tutorials on Coin Collection...But I am stuck on how to save the coins collected when the game/Level restarts. (Keeps reseting to 0 coins collected)
I have attached a few screen shots of both methods I am trying, can you let me know where i am going wrong please.

Thank you in advance 
Title: Re: Saving Coin Collection Problem
Post by: braintapgames on October 07, 2015, 08:14:44 PM
Not sure if I'm reading it correctly, but there should be a spot somewhere at the start of your scene that gets the PlayerPref Int and saves it to a variable too. Otherwise, it may only be looking for a variable that's a 0 at the start of your scene.