Saving best score

Hi everyone,

I’m pretty new in corona and I’m devoloping my first app.

It’s a really simple game but I like it.

Now I need some help to create a “save best score function”.

I’m using the preference module (I just copied the entire code in another lua file and I called it preference.lua) and it works fine usign the emulator but when I build my app and I install it on my android phone it works for a while then it crashes.

I can’t really understand why this happen  :frowning:

Hope you can help, thanks a lot to everyone  :smiley:

For your score question, we have a tutorial on that:  https://coronalabs.com/blog/2013/12/10/tutorial-howtosavescores/

As for your other question, part of using Corona is learning to debug your apps. We really can’t help you if you don’t provide enough information (like error messages and such), to get you there we have a debugging guide:

http://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

Hi Rob,

thanks for your answer, I’ve read your link about debugging and it seems I solved my problem just modifying the sandbox file.

Thanks a lot for your support, have a good day  :slight_smile:

For your score question, we have a tutorial on that:  https://coronalabs.com/blog/2013/12/10/tutorial-howtosavescores/

As for your other question, part of using Corona is learning to debug your apps. We really can’t help you if you don’t provide enough information (like error messages and such), to get you there we have a debugging guide:

http://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

Hi Rob,

thanks for your answer, I’ve read your link about debugging and it seems I solved my problem just modifying the sandbox file.

Thanks a lot for your support, have a good day  :slight_smile: