Does anyone know how to create a button that when pressed restarts the entire game?

I can’t find how to do it anywhere.

I just privately answered you and sent you a download in my conversation.

Zain Ali Zaman,  You cannot predict corona to provide you such library where you press/fire an event via any object/button & restart the Game. 

You have to set an Initial point/hook & then start the entire game terminology from there & even you can use JSON to keep the initial form of data need for game/scene that will be in the entire life cycle. Even you can tell this initial point as Menu screen & when you want to reset the game, it is just you have to switch to that scene & reset all the data & requires flags n all stuff.

-** Assif**

Try read Getting Started / Chapter 1 — Creating an App.

In my opinion, for someone who just starting learn how programming his first game it is better look simple example and learn from that. I find tutorial above was very helpful as start point for me. It is clear and easy to follow.

ldurniat 

I just privately answered you and sent you a download in my conversation.

Zain Ali Zaman,  You cannot predict corona to provide you such library where you press/fire an event via any object/button & restart the Game. 

You have to set an Initial point/hook & then start the entire game terminology from there & even you can use JSON to keep the initial form of data need for game/scene that will be in the entire life cycle. Even you can tell this initial point as Menu screen & when you want to reset the game, it is just you have to switch to that scene & reset all the data & requires flags n all stuff.

-** Assif**

Try read Getting Started / Chapter 1 — Creating an App.

In my opinion, for someone who just starting learn how programming his first game it is better look simple example and learn from that. I find tutorial above was very helpful as start point for me. It is clear and easy to follow.

ldurniat