Playmaker Forum
PlayMaker Help & Tips => Android Help => Topic started 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
-
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.
-
Thanks, but i am not sure if this is right way... also you cant convert string to float
-
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
-
Thank you for help:)
Can you make an example how build string structure using global variable float, int, bool?
-
you have to use all strings in build string not int and float or bool