playMaker

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

gozda

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

djaydino

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

gozda

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

djaydino

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

just search for Convert String to float

gozda

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

rik

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