Im having trouble making my character respawn. I have it so when the player collides with the enemy they lose a life, and when losing a life it moves it back to spawn. But it doesnt work, the character instantly loses all of their lifes and the frame restarts or the character loses a bunch of lives goes back to the spawn and is unable to move.