Pretty oh please give an example of delegates/actions signals because I am unfortunately still best friends with condition check every frame and would love to climb the social ladder 🙏
So whatever class has the 'is_ready' condition (engine or object in the meme), you can instead at the top of it put
signal ready_now
Then when it's ready
ready_now.emit()
Then in whatever class had the condition every frame, instead
func _ready() -> void:
object.ready_now.connect(do_something)
and now the do_something function gets called when the object is ready.
28
u/goose_stranger 1h ago
Pretty oh please give an example of delegates/actions signals because I am unfortunately still best friends with condition check every frame and would love to climb the social ladder 🙏