An actor should be able to follow a polyline path drawn on a map layer #76

Open
opened 2026-08-02 18:38:33 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.txt (at bbb7b8f)

Tiled lets a designer draw a polyline on an object layer. An actor should be able
to follow it -- the ordinary way to give an NPC a patrol route, a lift a travel
path, or a projectile an arc, without any of it living in C.

The pieces that exist: object layers load, actors carry a logicfunc that runs per
frame, and the arcade backend already moves an actor toward a thrust vector.

The pieces that do not: nothing reads a polyline's points, and there is no
representation of "where along the path am I" on an actor.

The related half of this item is already done. "Actors should be able to
calculate their facing state automatically depending on their movement state (for
path following)" is movement_controls_face and the default facefunc -- which
also has a defect open against it, since an actor with no movement bit falls to a
state that maps to no sprite.

Files: src/tilemap.c, src/actor.c, include/akgl/actor.h


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.txt (at bbb7b8f) Tiled lets a designer draw a polyline on an object layer. An actor should be able to follow it -- the ordinary way to give an NPC a patrol route, a lift a travel path, or a projectile an arc, without any of it living in C. The pieces that exist: object layers load, actors carry a `logicfunc` that runs per frame, and the arcade backend already moves an actor toward a thrust vector. The pieces that do not: nothing reads a polyline's points, and there is no representation of "where along the path am I" on an actor. **The related half of this item is already done.** "Actors should be able to calculate their facing state automatically depending on their movement state (for path following)" is `movement_controls_face` and the default `facefunc` -- which also has a defect open against it, since an actor with no movement bit falls to a state that maps to no sprite. **Files:** `src/tilemap.c`, `src/actor.c`, `include/akgl/actor.h` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 1.0.0 milestone 2026-08-02 18:38:33 -04:00
tachikoma added the api-gapblast-radius:medium labels 2026-08-02 18:38:33 -04:00
tachikoma added the status::grooming label 2026-08-02 18:49:30 -04:00
Sign in to join this conversation.