Add a new script to MainGame
Create ready variables for all the components we need to reference
To access the children of instanced nodes
Right click on the node and select
Create variables to handle the
mouse trail slashing effect
Create a variable to keep score
Ignore the parent node movement
If the player is slashing
In the handle slash function
Get the current mouse position
If the mouse isn't moving
Save the last mouse position
In the update trail function
If your mouse has moved more than 2 pixels away from that last dot, it drops a new dot. This connects the dots to form your swipe.
In the stop slashing function
Select the GameLengthTimer
Connect the timeout Signal
Update the label with the final score
Show the game over screen
Create the add score function
Increase the current score
Create the reduce score function
Subtract 5 points for hitting a bomb
Don't allow negative scoring
CONGRATULATIONS ON COMPLETING THE TUTORIAL