playMaker

Author Topic: Android Native Plugin Snapshot  (Read 3999 times)

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Android Native Plugin Snapshot
« 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Android Native Plugin Snapshot
« Reply #1 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.

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Re: Android Native Plugin Snapshot
« Reply #2 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Android Native Plugin Snapshot
« Reply #3 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

just search for Convert String to float

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Re: Android Native Plugin Snapshot
« Reply #4 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?

rik

  • Full Member
  • ***
  • Posts: 246
Re: Android Native Plugin Snapshot
« Reply #5 on: July 22, 2015, 04:01:54 PM »
you have to use all strings in build string not int and float or bool