Hi,
I measure the player's time (the lower the better) in a Timer FSM (see screenshot 1)
Then I create a PlayerPrefs: Best Time FSM.
With PlayerPrefs Get Float I want to get the variable lastBestTime ( see screenshot 2). I set this float initially to 99 so that with the first game the player plays, he will always have a first best time.
Then I do a Float Compare to see if the the player's time bettered the lastBestTime (see screenshot 3).
So with time measurements under 10sec (<99), it never flows into the New Best Time State. Has this anything to do with the Float Add per Second for the time variable?
My second question is about saving a time measurement in the PlayerPrefs (see screenshot 4). I try to save the time variable (which is the new best time) in the PlayerPrefs and then convert it to show it in the GUI.
But for the next game, which value will be read for the practiceBestTime Key if I replaced lastBestTime with the new time and then with the next game ask again for the lastBestTime?
I tried to look here at a sample from Jean (where he saves time measurement in the PlayerPrefs) but it seems to be empty:
http://hutonggames.com/playmakerforum/index.php?topic=2596.0Does anybody have other examples?
Grtz,
Nikola