playMaker

Author Topic: [SOLVED] Troubles understanding PlayerPrefs  (Read 2182 times)

MrMitch

  • Full Member
  • ***
  • Posts: 131
    • Rage Quit Games - Coming Soon
[SOLVED] Troubles understanding PlayerPrefs
« on: May 27, 2012, 08:05:36 PM »
I'm having some problems understanding how to make use of player prefs, my overall goal is to create a scoreboard

What i'm having troubles understanding is how to check if the player has a new high score, if they get a new high score they will be prompted with a box to enter a name and a button to submit the new score, if they don't get a new high score they will be prompted with a button to restart the level.

Any help or a point in the right direction would be greatly appreciated.
« Last Edit: May 29, 2012, 01:04:41 PM by Alex Chouls »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Troubles understanding PlayerPrefs
« Reply #1 on: May 28, 2012, 01:46:48 AM »
Hi,

 There is a complete working example for this available on the wiki:

https://hutonggames.fogbugz.com/default.asp?W890

with one particular Fsm to study:

https://hutonggames.fogbugz.com/default.asp?W895

If you need more help, do not hesitate, I tried to explain as much as possible on the wiki, but I can go more in details in some areas.

Bye,

 Jean

MrMitch

  • Full Member
  • ***
  • Posts: 131
    • Rage Quit Games - Coming Soon
Re: Troubles understanding PlayerPrefs
« Reply #2 on: May 29, 2012, 12:54:46 PM »
Thanks Jean :D

I've managed to figure out the basics of saving values thanks to that example, now i've just gotta build a scoreboard but i think i know how to tackle it, only time will tell :)