playMaker

Author Topic: in Basic PlayerPrefs scripting...  (Read 2178 times)

neowings

  • Playmaker Newbie
  • *
  • Posts: 25
in Basic PlayerPrefs scripting...
« on: April 10, 2013, 01:56:59 PM »
Hello,

I posted something about "Saving Game Data" before,
and Jean recommended use "PlayMaker - arrayMaker Add on".
But before I use it, I had to study about basic scripting on "PlayerPrefs" action.

I followed a user described it, as URL from:
http://hutonggames.com/playmakerforum/index.php?topic=344.msg15018;topicseen#msg15018

However, It didn't work correctly and didn't save the game status either.
I'm attaching what I've done it first, and I will happy when I get a reply and what was wrong with me.

Thank you.


« Last Edit: April 10, 2013, 01:58:55 PM by neowings »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: in Basic PlayerPrefs scripting...
« Reply #1 on: April 11, 2013, 02:09:20 AM »
Hi,

 difficult to say without knowing for sure that indeed other part of your fsm indeed saved a value in that player pref key.

 For a working example, you can study the various game sample I did on the wiki:

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

In your case and specifically in your screenshot I see a problem already:

 your first action that check if the player prefs has this key, doesn't implement any events, so it's totally void. have one state that first use only check if the key exists, redirect to a YES or NO transition, and only when YES, go get it.

bye,

 Jean

bye,

 Jean

neowings

  • Playmaker Newbie
  • *
  • Posts: 25
Re: in Basic PlayerPrefs scripting...
« Reply #2 on: April 12, 2013, 07:53:41 AM »

That's what I want to find it. Simple and easy to understand.
Thank you Jean