ioxu / key

Key, a game made with the Godot Engine 4.
MIT License
6 stars 1 forks source link

enemies communicate target #2

Closed ioxu closed 3 years ago

ioxu commented 3 years ago

Enemies communicate the target with neighbours. Alert neighbours.

ioxu commented 3 years ago

edit: no.

ioxu commented 3 years ago

Maybe sensing areas on enemies are the way to do it?

Do sensing areas detect the state of other nodes, or do they become eligible to receive notifications from other sensing areas?

ioxu commented 3 years ago

Reverse to idea above, have a self area, and check for others' overlapping sensing areas, and call a method on them.

Different sensables

ioxu commented 3 years ago

Latest idea

Areas plus signals: NPC communication signal connection:

Cases:

Area-only actions: No signals are connected, and actions only evoked on overlap, and reacted to only once?