playMaker

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

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
How to Store local variable
« on: March 13, 2018, 09:16:07 PM »
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
    • View Profile
Re: How to Store local variable
« Reply #1 on: March 13, 2018, 09:29:58 PM »
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: 3664
    • View Profile
    • jinxtergames
Re: How to Store local variable
« Reply #2 on: March 13, 2018, 11:19:37 PM »
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: 61
    • View Profile
Re: How to Store local variable
« Reply #3 on: March 17, 2018, 01: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, 01:59:00 AM by rainexplorer »

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
Re: How to Store local variable
« Reply #4 on: March 17, 2018, 01: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

  • Hero Member
  • *****
  • Posts: 666
    • View Profile
Re: How to Store local variable
« Reply #5 on: March 17, 2018, 03: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.