How can i emit a signal when a var is toggle?

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

Hi there guys.
I wanna to emit a signal just when a var is turn on.
Since the var that i toggle is in the _physics_process(delta), that run every frame, i can’t just use:


How can i do that?

:bust_in_silhouette: Reply From: Andrea

use setget variables (see second answer)