![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Martik |
Any If statement under ready function doesn’t seem to work. And I don’t want to use process(delta). How can I make nodes do something ONCE when a condition changes?
Please post your code.
How can I make nodes do something ONCE when a condition changes?
Do you want to react to a change? The _ready function is called once when the node enters the tree. It won’t be called again after that.
The best way to react to something without checking a condition every frame in _process is to use signals: GDScript basics — Godot Engine (3.2) documentation in English
Bernard Cloutier | 2020-01-29 16:36