playMaker

Author Topic: Playerpref  (Read 1870 times)

AlphaTec

  • Playmaker Newbie
  • *
  • Posts: 16
Playerpref
« on: July 11, 2014, 08:44:30 PM »
Hello.After finishing the game,how ı do save the highest score in system?

AlphaTec

  • Playmaker Newbie
  • *
  • Posts: 16
Re: Playerpref
« Reply #1 on: July 12, 2014, 10:21:49 AM »
??

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4003
  • Official Playmaker Support
    • LinkedIn
Re: Playerpref
« Reply #2 on: July 12, 2014, 11:59:06 AM »
You can use Playerprefs, but I'm guessing you know that from the title of your post...? What problems are you running into?

There are a few threads on the forums about saving high scores. Search for "highscore"

Excorplis

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Playerpref
« Reply #3 on: July 12, 2014, 03:56:38 PM »
You'll have to create an event that's called "Set Key (float/string/etc", the Key input is basically the name of your save (not the entire thing, but only one variable), and select whatever variable you want in the second input.

After that, you'll have to create a "Get Key (etc)" in the beginning of your game, to reapply those saved variables.

It doesn't cover multiple save files, merely simple saving and loading.