Skip to content
Dashboard

GameMaker Quickstart & Installation

This walkthrough will guide you through adding the LogLudo SDK to your GameMaker project, configuring your unique Game ID, and transmitting your first telemetry events.


  1. Log in to the LogLudo Dashboard, navigate to your game’s settings, and copy your Game ID (a standard UUID formatted string):

    9d3135a3-09a8-4bef-a855-41e5e677a8e4
  2. Add the LogLudo SDK assets to your GameMaker project:

    • scripts/scr_LOGLUDO/scr_LOGLUDO.gml: Defines the LOGLUDO macro, data structures, network flusher, and helper methods.
    • objects/obj_LOGLUDO/: Persistent controller managing lifecycle events, background timers, room performance, and the Scenelytics™ camera.
  3. Open scripts/scr_LOGLUDO/scr_LOGLUDO.gml. At the top of the file, locate global.logludo_settings and replace the placeholder with your actual Game ID:

    scr_LOGLUDO.gml
    /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    * LOGLUDO SDK by Logludo LLC
    * Do not edit this file!
    * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    */
    #macro LOGLUDO global.logludo_sdk
    global.logludo_settings = {
    api_url: "https://api.logludo.com/v0",
    game_ID: "YOUR-GAME-ID-HERE" // Paste your Game ID from the dashboard
    };
  4. You do not need to manually drag obj_LOGLUDO into your rooms!

    The SDK script utilizes GameMaker’s global time_source system to auto-instantiate obj_LOGLUDO after the first frame:

    scr_LOGLUDO.gml (Automatic Bootstrapper)
    var _logludo_init = time_source_create(time_source_global, 1, time_source_units_frames, function() {
    if (!instance_exists(obj_LOGLUDO)) {
    instance_create_depth(0, 0, 0, obj_LOGLUDO);
    }
    });
    time_source_start(_logludo_init);
  5. Press F5 (or Run) in GameMaker. Inspect your Output console. You will see the initialization sequence:

    >> LOGLUDO: Local data path is /Users/username/Library/Application Support/com.yourcompany.yourgame/
    >> LOGLUDO: Controller initialized!
    >> LOGLUDO PACKET OUTBOUND: [{"event_name":"session_start","game_id":"...","game_version":"1.0.0.0","payload":{"app_version":"1.0.0.0","build_type":"test","days_since_install":0,"device_model":"Apple M3 Max","first_open_date":1727549129,"is_first_session_today":true,"platform":"macOS","session_count":1,"test_bucket":4},"session_id":"sess_1727549129_120349"}]
    >> LOGLUDO: Batch Accepted by Tinybird/CF! (202)

    When you see status code 202, your game has successfully connected to LogLudo’s ingestion pipeline.

  6. Anywhere in your game logic (player scripts, enemy scripts, GUI buttons), use the LOGLUDO macro to send actions:

    Player Collision with Collectible
    // In obj_coin Collision Event with obj_player
    LOGLUDO.send_action("progression", "collect_coin", {
    coin_id: id,
    current_balance: other.coins,
    level_room: room_get_name(room)
    });

  1. Open dash.logludo.com and select your game project.
  2. In the sidebar, select Live Events or Telemetry.
  3. You will see your active test session with complete device information, operating system, and the events dispatched from your game.

When the game process ends, obj_LOGLUDO catches the GameMaker Other_3 (Game End) event:

  1. Automatically emits a session_end event recording session duration in seconds and exit_state: "normal_quit".
  2. Flushes any pending events in the buffer via an urgent HTTP request.
  3. Saves the buffer to logludo_offline.json so if the network fails before exit, events are sent immediately on the next game launch.