Hi,
-Create a bool variable.
- what name should it be in this FSM.
-- It can ba any name, but don't be confused by the name of the FsmBool variable, and the "key" of the playerPref you will save this variable, I think a lot of people are getting confused between the two.
--Make the variable under it the Bool you just made.
- what kind of variable should i make? is it Bool or other? if it should be a bool what name should i use it?
you can use ANY name, there is no restriction here.
-Add, "PlayerPrefs HAS Key"
- what should i do with this action? should i store result or do something? can you tell me more about this action?
This action check that you have a "key" defined in your player prefs, this is very important typicall during the initial phase of the game, when the user is playing for the first time. no player prefs will be saved yet, and so you need to use a default variable instead, then when the user returns, you will have likely saved that key and so you will rely on its value instead of the default one.
I write this because it seemed didn't work on my fsm. can you please explain more on this?
Have you check working samples? typically, I have created some PlayMaker port of M2h simple games, you should definitly study how they work:
https://hutonggames.fogbugz.com/default.asp?W880and typically, study for example the jump game, where I use playerprefs to record the score:
https://hutonggames.fogbugz.com/default.asp?W895PlayePrefs are working very well, you need to grasp how it works, so it's good you ask specific questions here, once you will understand the mechanism, it will be all very simple to use.
Bye,
Jean