We can also specify where to place the button when the game starts. For instance, I'll put it next to my hits counter.
6:11
Now we'll specify that when we click the button, the number of hits is set to zero. So we'll introduce a when this sprite clicked block from the Events pallet,
6:22
followed by a block to set hits to zero.
6:29
Let's test our revised helicopter game to see if it works.
6:40
Now I'll hit the Restart button. Excellent! The number of hits was reset to zero.
6:54
We invite you to try more effects and incorporate more ideas to enrich this game.