Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: gozda on June 25, 2015, 11:46:37 PM

Title: Android Native Plugin Snapshot
Post by: gozda on June 25, 2015, 11:46:37 PM
Hello

I want to create snapshot saving some data like: lvl, exp, gold... this variables must be added in action AN_Create New Snapshot in field Snapshot Data as string. I think this string its json, but how to generate this string from all variables?

gozda
Title: Re: Android Native Plugin Snapshot
Post by: djaydino on June 26, 2015, 11:23:42 AM
Hi,
i guess you could use Convert to string actions and then "build string"
or you could use "format String"

and then "get string" and convert to what is needed.
Title: Re: Android Native Plugin Snapshot
Post by: gozda on June 27, 2015, 10:22:45 PM
Thanks, but i am not sure if this is right way... also you cant convert string to float
Title: Re: Android Native Plugin Snapshot
Post by: djaydino on June 28, 2015, 12:14:22 PM
Hi,
strangely there was no action for it indeed so i made one and
i have added "Convert String to float" to the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)

just search for Convert String to float
Title: Re: Android Native Plugin Snapshot
Post by: gozda on June 29, 2015, 02:02:24 AM
Thank you for help:)

Can you make an example how build string structure using global variable float, int, bool?
Title: Re: Android Native Plugin Snapshot
Post by: rik on July 22, 2015, 01:01:54 PM
you have to use all strings in build string not int and float or bool