Save Score on button click

Hi

I am trying to implement a save score button so when game is over, user is given first 3 credits to click a SAVE ME button to save the current socre to a json file.

When next you wants to save score, he hos left with 2.

To get more SAME ME credit, I want to be able to watch a video rewards from any of the video reward providers.

Any help or direction will be high appreciated.

Check out this tutorial on how to save table

https://coronalabs.com/blog/2014/10/14/tutorial-saving-and-loading-lua-tables-with-json/

Also there are lots of ad providers that may do this slightly different so you would have to check out the documentation.

Here is one for example

https://docs.coronalabs.com/plugin/adbuddiz/RewardedVideo_show.html

Check out this tutorial on how to save table

https://coronalabs.com/blog/2014/10/14/tutorial-saving-and-loading-lua-tables-with-json/

Also there are lots of ad providers that may do this slightly different so you would have to check out the documentation.

Here is one for example

https://docs.coronalabs.com/plugin/adbuddiz/RewardedVideo_show.html