When all enemys die (I have 1 right now) or the player dies I have a button that resets the layer. It works good if the enemy dies but when the player dies his sprite doesn't reappear, his hp is still 0 and his xp is reset.
Also, I want to keep the players xp so I made the player have a persist behavior but that also keeps his hp when i reset the room so I have to set the players hp back to 10. How can I keep the players xp but also reset the hp when I reset the layer?