Collision Highscore

I have dynamic apple images falling from the sky and I want to put a score overtime the apple hits a specific static object and put this text on the top of the screen and also save it and show at the end the highscore and the current score etc so how do I do this?

First, you will give the apples and the static objects and id. 

apple.id = "apple" staticObject.id = "object"

Then you would need a collision listener to detect whether or not the apple and the object have collided:

https://docs.coronalabs.com/guide/physics/collisionDetection/index.html

You will also need a score module, I recommend using Rob Miracle’s:

https://coronalabs.com/blog/2013/12/10/tutorial-howtosavescores/

Good luck!

First, you will give the apples and the static objects and id. 

apple.id = "apple" staticObject.id = "object"

Then you would need a collision listener to detect whether or not the apple and the object have collided:

https://docs.coronalabs.com/guide/physics/collisionDetection/index.html

You will also need a score module, I recommend using Rob Miracle’s:

https://coronalabs.com/blog/2013/12/10/tutorial-howtosavescores/

Good luck!