Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rainexplorer on March 14, 2018, 12:16:07 AM

Title: How to Store local variable
Post by: rainexplorer 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...
Title: Re: How to Store local variable
Post by: evmo 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.
Title: Re: How to Store local variable
Post by: djaydino 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.
Title: Re: How to Store local variable
Post by: rainexplorer 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
Title: Re: How to Store local variable
Post by: rainexplorer 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
Title: Re: How to Store local variable
Post by: tcmeric 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.