playMaker

Author Topic: PlayerPrefs - how to work with bools?  (Read 2180 times)

Aaddiction

  • Full Member
  • ***
  • Posts: 166
PlayerPrefs - how to work with bools?
« on: June 28, 2014, 05:18:24 PM »
Hello, I've come to a point where I want to save my int variables and bools.
For int values I used "normal" int and now when I want to save them I add set PlayerPref int at the end of the FSM and set playerPref int and the start.

However, I can not figure out how to save bool variables? I see only int, float and string. How can I store my bool vars with PlayerPrefs and Playmaker?

Thank you.

Bjakuja

  • Junior Playmaker
  • **
  • Posts: 75
Re: PlayerPrefs - how to work with bools?
« Reply #1 on: June 30, 2014, 04:37:28 AM »
Hi! For you problem you can download these actions :
https://hutonggames.fogbugz.com/default.asp?W1118
and you will need Array Maker in order to work. This will help you a lot cause you can choose any value and multiple values at the same time, you can store value and get them as well with these actions set / get value. You can choose bool as well ;)

Cheers!!!

Aaddiction

  • Full Member
  • ***
  • Posts: 166
Re: PlayerPrefs - how to work with bools?
« Reply #2 on: July 01, 2014, 03:38:25 AM »
How can I've missed that, thank you a lot.