Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: neowings on April 10, 2013, 01:56:59 PM

Title: in Basic PlayerPrefs scripting...
Post by: neowings 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 (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.


Title: Re: in Basic PlayerPrefs scripting...
Post by: jeanfabre 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
Title: Re: in Basic PlayerPrefs scripting...
Post by: neowings on April 12, 2013, 07:53:41 AM

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