diff --git a/docs/21-tutorial-jrpg.md b/docs/21-tutorial-jrpg.md index c30661c..a67d1a8 100644 --- a/docs/21-tutorial-jrpg.md +++ b/docs/21-tutorial-jrpg.md @@ -962,6 +962,13 @@ range, otherwise do nothing. #define TALK_RANGE 64.0f ``` +**Place your NPCs with that number in mind.** The distance is measured between the two +actors' positions, and both sprites are 32 pixels, so 64 is two sprite widths — close, by +design. An NPC parked behind a building or across a wall from anywhere the player can stand +is an NPC the player can see and never talk to, and nothing reports that: the handler finds +nobody in range and returns success. If a conversation will not open, print the distance +before you go looking at the code. + ```c excerpt=examples/jrpg/world.c #define TOWNSFOLK_COUNT (sizeof(TOWNSFOLK) / sizeof(TOWNSFOLK[0])) ```