Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kaelcabral on November 12, 2013, 04:13:49 AM

Title: Store Int Data
Post by: kaelcabral on November 12, 2013, 04:13:49 AM
Hey All!

I have a game that you can spend coins to use powers "consumables"

The game is working fine with add and subtract Int on the globals.
But the problem when I restart the game, all the Int Data restarted too.

Could someone help me on this?

The idea is to have inn-app purchases for more coins too. I haven't bought Prime31 yet but I want to integrate the both.

Best to all! :o
Title: Re: Store Int Data
Post by: jeanfabre on November 12, 2013, 05:23:59 AM
Hi,

 The quickest way is to use PlayerPrefs to save data in a persistent way, but that's not very secured. the best way is to use a server side database or something and link a user with it's properties such as coins and all.

Bye,

 Jean
Title: Re: Store Int Data
Post by: kaelcabral on November 12, 2013, 01:08:25 PM
 ;) thanks Jean!
Can I save in a server with a free unity version?
I checked the plugin easysave2 do you recommend for this?

Best
Title: Re: Store Int Data
Post by: jeanfabre on November 14, 2013, 12:26:24 AM
Hi,

 Yes, Unity indie gives you access to internet, so you can make call to your own server to store/retrieve data.

 EasySave is good, and I have it as an addon to ArrayMaker, so it's quite performant and straight forward to use:

https://hutonggames.fogbugz.com/default.asp?W715

bye,

 Jean