Smart Waypoints is a lean, production-ready add-on for Game Creator 2 that makes character pathing effortless and precise.
Design paths right in Scene view with clear gizmos, dotted connections and optional arrows. Shift-click to place points with surface snap; each point can override easing, handover distance, and wait time. Close a path into a loop with a single toggle.
At runtime, characters follow paths using one GC2 Tween per segment for natural acceleration/deceleration. You choose how segments are timed (by speed or fixed time), handover behavior between segments, per-point waits, and loop mode (Once, Loop, Ping-Pong).
For gameplay logic, the included On Waypoint Index Passed event fires as your character crosses indices. A tiny global bus also exposes the last passed index so you can read it from anywhere (e.g., UI, conditions, logs).
Properties (GC2 Getters) included
- Get Points · Current Index (by Position) — nearest segment start (i) to the character.
- Get Points · Current Transform (by Position) — transform of the current point (i).
- Get Points · Next Index (by Position) — segment end (j) from the nearest segment. Ideal for reacting at handover.
- Get Points · Next Transform (by Position) — transform of point (j).
- Get Points · Segment T (by Position) — normalized 0..1 progress along the nearest segment i→j.
- Get Points · Last Passed Index (Bus) — returns the last index raised for a Character, with an option to filter by a specific WaypointPath.
What’s included
- Waypoint Path component (with gizmos, arrows, loop toggle, placement/snap).
- Waypoint Node (per-point easing, handover override, optional wait).
- Instructions (GC2): Follow Path, Follow From Index, Follow To Index, Follow Between Indices, Resume, Stop, plus a “Wait Until Index” style flow.
- Event: On Waypoint Index Passed (Character + Path + Index filters).
- Properties: the six getters listed above (current/next index & transform, segment progress, last passed index with optional Path filter).