How do I make my player disappear??

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Stanislav

Im new to godot and I want my player to disappear after touching an object (spikes) in my 2d platformer game. I used hide() but it makes the spikes disappear instead and I tried using body.queue_free() but it resets the camera. Am I missing something?

:bust_in_silhouette: Reply From: magicalogic
Sprite.visible=false