Hide character in scene

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

Hello everyone!

I am trying to hide a character in Godot.
However when i tried the Hide() funcion, it only hides the sprite and the collision and everything still works.

How would i go about removing a character from a scene while in game?

:bust_in_silhouette: Reply From: Zedespook

If you want to remove your character from the scene completely, you should use queue_free().

:bust_in_silhouette: Reply From: null_digital

Queue_free() removes nodes safely from the scene tree.