Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: gozda on June 26, 2015, 02:46:37 AM

Title: Android Native Plugin Snapshot
Post by: gozda on June 26, 2015, 02:46:37 AM
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, 02:23:42 PM
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 28, 2015, 01:22:45 AM
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, 03: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, 05: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, 04:01:54 PM
you have to use all strings in build string not int and float or bool