Scenelytics™ & Spatial Telemetry
Scenelytics™ is LogLudo’s spatial telemetry engine. Instead of viewing abstract numbers in charts, Scenelytics plots player coordinates, interaction vectors, and movement paths directly over your actual GameMaker level layouts in the LogLudo dashboard.
How Scenelytics™ Works
Section titled “How Scenelytics™ Works”When you include coordinates or instance references in an event payload, the SDK automatically extracts, anchors, rounds, and packages the data into a standardized scenelytics sub-struct:
{ "event_name": "progression", "payload": { "action": "player_death", "room_name": "rm_dungeon_03", "scenelytics": { "type": "point", "pointType": "x", "x": 412.5, "y": 890.25, "color": "rgba(239, 68, 68, 0.9)", "recent_path": [ [390.0, 850.0], [400.5, 870.2], [412.5, 890.25] ] } }}Automatic Spatial Anchor & Normalization
Section titled “Automatic Spatial Anchor & Normalization”To ensure coordinates map 1:1 with your level art:
- Spatial Anchor: In
Other_4(Room Start),obj_LOGLUDOsnaps itself to(0, 0). The SDK offsets coordinates relative toobj_LOGLUDO.xandobj_LOGLUDO.y. - Bandwidth Optimization: All floating-point coordinates (
x,y,endX,endY) are rounded to 2 decimal places (round(val * 100) / 100). This reduces JSON payload weight by up to 40% without compromising visual heatmap accuracy. - Automatic Room Tagging: If
room_nameis omitted, the SDK automatically populates it usingroom_get_name(room).
1. Point Heatmaps (Deaths, Clicks, Pickups)
Section titled “1. Point Heatmaps (Deaths, Clicks, Pickups)”Points are rendered as discrete markers or heat density clusters on your room map.
Passing Explicit Coordinates
Section titled “Passing Explicit Coordinates”LOGLUDO.send_action("progression", "player_death", { killer: "spiked_trap", scenelytics: { type: "point", pointType: "x", // "x" renders an X marker; "dot" renders a circular heat point x: x, y: y, color: "rgba(255, 0, 0, 0.9)" }});Auto-Extracting from track_id
Section titled “Auto-Extracting from track_id”You can pass the instance ID via track_id. The SDK will automatically fetch x and y from that instance:
LOGLUDO.send_action("progression", "coin_collected", { track_id: id, // Automatically extracts id.x and id.y coin_value: 5, scenelytics: { type: "point", pointType: "dot", color: "gold" }});2. Vectors & Directional Arrows (Drags, Dashes, Shots)
Section titled “2. Vectors & Directional Arrows (Drags, Dashes, Shots)”You can visualize vectors such as dash directions, bullet trajectories, or touch drag gestures by supplying starting (x, y) and ending (endX, endY) coordinates:
// Visualizes a player dash from start to finishLOGLUDO.send_action("gameplay", "dash_executed", { track_id: id, x: dash_start_x, y: dash_start_y, endX: x, endY: y, scenelytics: { type: "arrow", color: "#10b981" // Logludo emerald }});The LogLudo dashboard renders these as crisp, directional arrows indicating player trajectory and velocity.
3. Motion Trails & Path Tracking (Breadcrumbs)
Section titled “3. Motion Trails & Path Tracking (Breadcrumbs)”One of the most powerful features in the SDK is real-time motion trail tracking. You can track an instance’s movement over a rolling window of frames (e.g., the last 1–2 seconds) and automatically embed that trail when a significant event occurs.
Step 1: Register the Instance for Path Tracking
Section titled “Step 1: Register the Instance for Path Tracking”In the Create event of the object you wish to track (e.g., obj_player), call LOGLUDO.track_path():
// Track the player instance, retaining the last 120 frames (2 seconds at 60 FPS)if (variable_global_exists("logludo_sdk")) { LOGLUDO.track_path(id, 120);}_inst(Id.Instance): The instance to track._max_length(Real, Default: 60): Maximum number of coordinate pairs stored in the rolling buffer.
Step 2: How the SDK Records Paths
Section titled “Step 2: How the SDK Records Paths”In obj_LOGLUDO’s Step_0 event, the SDK iterates over all registered instances every frame:
- Samples the instance’s
xandycoordinates. - Rounds each to 2 decimal places.
- Appends
[x, y]to the path array. - Automatically removes the oldest entry when exceeding
_max_length. - Automatically removes the tracker if the instance is destroyed.
Step 3: Triggering an Event with Attached Motion Trail
Section titled “Step 3: Triggering an Event with Attached Motion Trail”When you emit an event and reference the tracked instance with track_id, the SDK instantly clones a snapshot of the rolling path into scenelytics.recent_path:
LOGLUDO.send_action("progression", "player_death", { cause: "boss_laser", track_id: id, // Automatically attaches the cloned recent_path buffer! scenelytics: { type: "point", pointType: "x", color: "red" }});In the Scenelytics dashboard viewer, you will see not only where the player died, but the exact movement trajectory they took in the seconds leading up to their demise!
Step 4: Stop Tracking (Optional)
Section titled “Step 4: Stop Tracking (Optional)”When an entity leaves the scene or tracking is no longer needed:
LOGLUDO.stop_tracking_path(id);(Note: If the instance is destroyed via instance_destroy(), the SDK safely purges it from tracked_paths automatically on the next step).