Add a flag variable to indicate if the player is dead or not
In the Hit or Hurt function
Add a health check and call the
death function if required
Now create the Death function
When it is called, set dead to true
Shoot the player up in the air
To get the player to rotate
perform a check in the process function
then call the rotate function and turn
the player by a small amount.
add a VisibleOnScreenNotifier Node
as a child of CharacterBody2D
Connect the screen_exited() signal