Godot
Groups
- Scripting (continued) — Godot Engine latest documentation
- SceneTree — Godot Engine latest documentation
- Calling a method on all members of a group SceneTree — Godot Engine latest documentation
_on_discovered():
get_tree().call_group(“enemies”, “player_was_discovered”)
var enemies = get_tree().get_nodes_in_group("enemies")
Yield (Coroutine) example
- GDScript — Godot Engine latest documentation
- From Grid-based movement Godot 3 demo overview - YouTube:
func some_func():
set_process(false) # turn off physics
$AnimationPlayer.play("jump")
yield($AnimationPlayer, "animation_finished") # wait until signal
set_process(true)