question

soggy-chips avatar image
soggy-chips asked

Corona SDK help!

So here is a table storing all of the user's data:

 main_variables = {}
	main_variables.highscore = 0
	main_variables.lastscore = 0
	main_variables.kills = 0
	main_variables.coin_bank = 0
	main_variables.gem_bank = 0
	main_variables.topkills = 0
	main_variables.adfree = false

It is loaded and saved into a json table:

loadsave.saveTable( main_variables, "main_variables.json" )

How can I implement this into PlayFab?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

soggy-chips avatar image soggy-chips commented ·
0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

What would probably be simplest would be to convert your data to a JSON block, and store it as an Entity Object (https://api.playfab.com/docs/tutorials#entities). Alternately, you could serialize that into a string and save it in Player Data (https://api.playfab.com/docs/tutorials/landing-players/using-player-data).

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.