playMaker

Author Topic: Saving Coin Collection Problem  (Read 1921 times)

Cyborg_Sam

  • Playmaker Newbie
  • *
  • Posts: 11
Saving Coin Collection Problem
« 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 

braintapgames

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Saving Coin Collection Problem
« Reply #1 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.