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.
Step-by-Step Walkthrough
Section titled “Step-by-Step Walkthrough”-
Obtain Your Game ID
Section titled “Obtain Your Game ID”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 -
Import SDK Assets into Your Project
Section titled “Import SDK Assets into Your Project”Add the LogLudo SDK assets to your GameMaker project:
scripts/scr_LOGLUDO/scr_LOGLUDO.gml: Defines theLOGLUDOmacro, data structures, network flusher, and helper methods.objects/obj_LOGLUDO/: Persistent controller managing lifecycle events, background timers, room performance, and the Scenelytics™ camera.
-
Inject Your Game ID
Section titled “Inject Your Game ID”Open
scripts/scr_LOGLUDO/scr_LOGLUDO.gml. At the top of the file, locateglobal.logludo_settingsand 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_sdkglobal.logludo_settings = {api_url: "https://api.logludo.com/v0",game_ID: "YOUR-GAME-ID-HERE" // Paste your Game ID from the dashboard}; -
Zero-Setup Automatic Bootstrapping
Section titled “Zero-Setup Automatic Bootstrapping”You do not need to manually drag
obj_LOGLUDOinto your rooms!The SDK script utilizes GameMaker’s global
time_sourcesystem to auto-instantiateobj_LOGLUDOafter 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); -
Run Your Game & Verify the Handshake
Section titled “Run Your Game & Verify the Handshake”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. -
Send Your First Custom Event
Section titled “Send Your First Custom Event”Anywhere in your game logic (player scripts, enemy scripts, GUI buttons), use the
LOGLUDOmacro to send actions:Player Collision with Collectible // In obj_coin Collision Event with obj_playerLOGLUDO.send_action("progression", "collect_coin", {coin_id: id,current_balance: other.coins,level_room: room_get_name(room)});
Verifying in the Dashboard
Section titled “Verifying in the Dashboard”- Open dash.logludo.com and select your game project.
- In the sidebar, select Live Events or Telemetry.
- You will see your active test session with complete device information, operating system, and the events dispatched from your game.
What Happens When the Player Quits?
Section titled “What Happens When the Player Quits?”When the game process ends, obj_LOGLUDO catches the GameMaker Other_3 (Game End) event:
- Automatically emits a
session_endevent recording session duration in seconds andexit_state: "normal_quit". - Flushes any pending events in the buffer via an urgent HTTP request.
- Saves the buffer to
logludo_offline.jsonso if the network fails before exit, events are sent immediately on the next game launch.