playMaker

Author Topic: How to Store local variable  (Read 2146 times)

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
How to Store local variable
« on: March 14, 2018, 12:16:07 AM »
Hi,

any idea to save local variable ? so after i do restart my mobile phone, then the variable can be loaded again...(assume at this point, internet connection is off)

moreover, this local variable should be sync to google-service (assume internet connection is on)

thanks in advance...

evmo

  • Playmaker Newbie
  • *
  • Posts: 21
Re: How to Store local variable
« Reply #1 on: March 14, 2018, 12:29:58 AM »
I had to use a third party plug in to accomplish this,
there are a few that work with playmaker.
SmoothSave is cheap at 10 bucks and has worked well for me.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: How to Store local variable
« Reply #2 on: March 14, 2018, 02:19:37 AM »
Hi.
You can use playerprefs to save variables, but they are easy to hack.

i use easy save for all my projects, its very complete.
You can even upload/download saves and it has encryption.

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
Re: How to Store local variable
« Reply #3 on: March 17, 2018, 04:03:15 AM »
Hi.
You can use playerprefs to save variables, but they are easy to hack.

i use easy save for all my projects, its very complete.
You can even upload/download saves and it has encryption.

Hi,

thanks for suggesting easy save
How about PlayMaker's Global variable, are they safe from hacking ?


thanks
« Last Edit: March 17, 2018, 04:59:00 AM by rainexplorer »

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
Re: How to Store local variable
« Reply #4 on: March 17, 2018, 04:03:44 AM »
I had to use a third party plug in to accomplish this,
there are a few that work with playmaker.
SmoothSave is cheap at 10 bucks and has worked well for me.

Thanks for your suggestion

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: How to Store local variable
« Reply #5 on: March 17, 2018, 06:57:08 AM »
Global variables are not saved between sessions. You can save many variable types to player prefs (which is unitys built in solution), however that is very easy to hack. Therefore a 3rd party solution is usually the easiest and best solution.