How to Build a 3D Platformer Game Inside Articulate Storyline
Learn how to build a fully playable 3D platformer game inside Articulate Storyline using Three.js, Mixamo characters, and free Kenney assets. This step-by-step guide covers character setup, level building in Blender, game engine configuration, and wiring Storyline variables to drive side quests and LMS reporting from a 3D game in Articulate Storyline.
By Nathan Stoker · Published May 11, 2026 · Updated May 17, 2026 · 14 min read

Most eLearning games live in two dimensions. Flat backgrounds, sprite-based characters, side-scrolling worlds. In Part 2 of this series, we built exactly that: a 2D animated character with scrolling backgrounds, interactive hotspots, and Storyline variable integration. It works, and it's a solid foundation for gamified learning. But this post is about the next step: building a 3D platformer in Storyline that runs entirely inside a web object.
But what if you could give your learners an actual 3D world to explore? A platformer where they run, jump, collect items, and trigger side quests, all rendered in real-time 3D, running inside a Storyline web object, with every interaction feeding back into your course logic?
That's what we're building today. A fully functional 3D side-scrolling platformer powered by Three.js, with animated characters from Mixamo, level geometry from free asset packs, and a complete Storyline integration layer that lets your course respond to everything the learner does in the game. Same web object pattern you already know from last weeks How to Communicate Between Storyline and Web Objects Using Variables and the 2D character system. Different dimension.
In this walkthrough, I'll take you through every step: sourcing and preparing a 3D character, building a level in Blender, configuring the game engine, and wiring it all into Storyline with layers and variable triggers. You'll end up with a playable 3D game embedded in your course that you can customize for any training scenario.
How Web Objects Connect to Storyline (Quick Recap)
If you've followed the previous posts in this series, you already know the pattern. A web object is a folder containing an HTML file (and any supporting assets) that Storyline loads into a slide. The web object communicates with your course through Storyline's player API.
The engine wraps that API in a small helper that caches the player reference and walks up the iframe hierarchy until it finds it:
var storylinePlayer = null;
function getStorylinePlayer() {
if (storylinePlayer) return storylinePlayer;
try { storylinePlayer = GetPlayer(); return storylinePlayer; } catch (e) { }
try { storylinePlayer = window.parent.GetPlayer(); return storylinePlayer; } catch (e) { }
try { storylinePlayer = window.parent.parent.GetPlayer(); return storylinePlayer; } catch (e) { }
return null;
}
function setStorylineVar(name, value) {
var p = getStorylinePlayer();
if (p) {
p.SetVar(name, value);
} else {
console.log("Storyline not available. Local variable update:", name, "=", value);
}
}
The fallback chain is there because depending on how Storyline publishes and where the web object sits in the iframe hierarchy, GetPlayer() might be available directly, on window.parent, or on window.parent.parent. The helper tries all three and falls back gracefully when you're testing outside Storyline.
The 3D game uses this helper to send collision data, collectible counts, interaction events, and game completion status back to Storyline. Your course triggers can then watch for specific values and respond accordingly.
Step 1: Get Your Character from Mixamo
Mixamo is Adobe's free library of 3D characters and animations. You'll pick a character model and download seven animations that the game engine expects.
Choose a Character
You have two options here, and the second one opens the door to a much wider range of characters.
Option A: Use Mixamo's built-in library. Browse the characters tab on Mixamo and pick one that fits your scenario. There are a few dozen to choose from, enough for most projects.
Option B: Bring your own character from Sketchfab. This is the bigger play. Sketchfab has a huge collection of Mixamo-compatible characters, stylized, realistic, cartoon, sci-fi, fantasy, you name it. Many are free or Creative Commons licensed. Find a character you like, download it (typically as FBX or GLB), then upload it to Mixamo. Mixamo will auto-rig it and let you apply any animation from its library to your custom character. This means you're not limited to Mixamo's default roster. You can have a robot, a knight, a mascot, whatever fits your training scenario, and still get all seven animations you need.
For this tutorial, I'm using a character called Amy from Mixamo's library, but the workflow is the same regardless of where your character model comes from.
Download These Seven Animations
Search for each animation in Mixamo's library, apply it to your character, and download as FBX:
Idle: the default standing pose
Walk: standard walking cycle
Run: faster movement
Jump: a jump with airtime
Crouch: ducking down
Dance: a celebration move (plays when the learner presses the dance button)
Climb: climbing motion for ladders
For each animation, set the format to FBX Binary (.fbx) and keep the default settings. Download all seven files.
Merge the Animations
You now have seven separate FBX files. The game engine needs them combined into a single GLB file with all animations embedded. Head over to natestoker.com/anim-merger, a browser-based tool I built specifically for this workflow.
Drop all seven FBX files into the merger. It will combine them into one file with each animation stored as a named clip. The clip names matter because the game engine maps them in its CONFIG:
animations: {
"idle": "Idle",
"walking": "Walk",
"running": "Run",
"jump": "Jump",
"climbing": "Climb",
"crouch": "Crouch",
"dance": "Dance"
}
The left side is the engine's internal name. The right side is the clip name from your merged file. If your animation clips have different names (which can happen depending on what you named them in Mixamo), update the CONFIG to match.
Verify and Compress
Use the viewer built into the merger tool to verify all seven animations play correctly. Check that the idle loops smoothly, the walk and run cycles don't have hitches, and the jump has proper airtime.
Once verified, drag your merged GLB file into the compressor. 3D models can be surprisingly large, and every megabyte matters when your learner is loading this inside an LMS. The compressor uses Draco mesh compression and texture optimization to shrink the file significantly.
Rename the final output to character.glb.
Step 2: Build Your Level in Blender
The game needs a 3D level: platforms, obstacles, collectibles, and decorations. We'll use a free asset pack and assemble a simple board in Blender.
Download the Platformer Kit
Go to kenney.nl/assets/platformer-kit and download the kit. Kenney's assets are public domain (CC0), so you can use them freely in any project, commercial or otherwise. The kit includes blocks, platforms, coins, keys, flags, springs, crates, and decorations, everything you need for a platformer level.
Import the GLB file from the kit into Blender. You'll see all the available pieces laid out.
Assemble Your Board
This isn't a full Blender tutorial, but here's what you need to know to build a functional level:
Moving pieces: Select an object, press G to grab, then X, Y, or Z to constrain movement to an axis. Click to place.
Duplicating: Select an object, press Shift+D to duplicate, then constrain and place. This is how you'll build rows of platforms; duplicate one block, move it into position, repeat.
Snapping: Press Ctrl while moving to snap to the grid. This helps keep platforms aligned so the character doesn't catch on edges.
Naming Conventions
Naming conventions matter. The game engine reads mesh names to determine behavior. Here's what to name things:
Meshes containing coin become collectible coins
Meshes containing key become collectible keys
Meshes containing flag become the end-of-level goal
Meshes containing heart become heart collectibles (hidden until a chest opens)
Meshes containing crate or item become hittable blocks that drop coins
Meshes containing chest become openable treasure chests
Meshes containing lever or button become interactive switches
Meshes containing spring become bounce pads
Meshes containing ladder become climbable ladders
Meshes containing block-moving become moving platforms
Meshes starting with hotspot_ become Storyline variable triggers
Keep your level relatively simple for the first pass. A flat run of platforms with a few elevated sections, some coins scattered along the path, a couple of keys, and a flag at the end. You can always add complexity later once you've confirmed everything loads and runs correctly.
Export
When your level is assembled:
Select all objects
Go to File → Export → glTF 2.0 (.glb)
In the export settings, make sure "Selected Objects" is checked
Save as
board.glb
Also save the texture file from the Kenney kit. Create a folder called Textures and put colormap.png inside it. The game engine references this path when loading the board's materials.
Step 3: Configure the Game Engine
The game engine is a single index.html file that contains everything: the Three.js renderer, physics system, character controller, camera system, HUD, mobile touch controls, and Storyline integration layer. You don't need to understand all 3,800 lines of it. You just need to know where the CONFIG section lives and what to change.
File Structure
Create a folder for your web object. The structure should look like this:
kidgame/
├── index.html (the game engine)
├── board.glb (your level)
├── character.glb (your character)
└── Textures/
└── colormap.png (the texture atlas)
The CONFIG Section
Open index.html and find the CONFIG object. This is the control center for everything:
var CONFIG = {
// --- Spawn / Respawn ---
spawnX: -11,
spawnY: 5.0,
spawnZ: 0.0,
respawnFallThreshold: -15,
// --- Character physics ---
walkSpeed: 4,
runSpeed: 7,
autoRunDelay: 1.5, // Seconds of walking before auto-run kicks in
jumpForce: 7,
springForce: 15,
gravity: 12,
maxJumps: 2,
charHeight: 1.5,
charRadius: 0.35,
charScale: .015,
// --- Camera ---
cameraZoom: 2.5,
cameraHeight: 2.9,
cameraZOffset: 30,
cameraMode: 'perspective',
// --- Storyline & Collision ---
collisionIgnore: ["plane", "ground", "floor"],
pauseOnItems: ["lever", "handle", "chest", "button"],
decorNames: ["flower", "arrow"],
storylineVarsToResetOnReplay: ["puzzle1", "puzzle2", "puzzle3"],
// ... more settings
};
The settings you'll most likely need to adjust:
spawnX, spawnY, spawnZ: where the character appears when the game starts. If your level geometry is positioned differently in Blender, you'll need to update these so the character doesn't spawn inside a wall or floating in the air.
charScale: the scale of the character model. Mixamo characters are typically huge, so this is usually a small number like 0.015. If your character appears gigantic or microscopic, tweak this.
walkSpeed, runSpeed, autoRunDelay, jumpForce, gravity: the feel of movement. The character automatically transitions from walk to run after autoRunDelay seconds of continuous travel in one direction, so the learner doesn't have to hold a sprint key. Reverse direction or stop, and the timer resets.
cameraZoom: how zoomed in the camera is. Higher numbers zoom in closer to the character.
pauseOnItems: when the engine writes a mesh name to LastActivatedItem that contains any of these strings, the entire game pauses. This is the puzzle pause hook. As long as a Storyline puzzle layer is open, the game freezes; clearing the variable resumes everything and refocuses the keyboard. Add new strings here when you introduce new puzzle interactions.
animations: the mapping between the engine's expected animation names and the actual clip names in your GLB file. If your merged character file uses different clip names, update this mapping.
Insert as a Web Object
In Storyline:
Go to Insert → Web Object
Select File and browse to your
gamefolderSet Display in: Slide
Set Load web object: Automatically
Resize the web object to fill your slide (the game is designed to run fullscreen)
Testing Without Publishing
Every time you want to test a change, you'd normally need to update your web object in Storyline, publish for Web, and wait. That's painfully slow for iterative game development.
If you're on Windows, there's a much faster way. I built a free local server toolkit that adds a right-click "Open on Local Server" option to any HTML file on your machine. The zip includes four files:
open-local-server.ps1: a tiny PowerShell script that spins up a local HTTP server in the folder of whatever HTML file you right-clickedopen-local-server.vbs: a silent wrapper so PowerShell doesn't flash a console window every timeadd-local-server.reg: adds the right-click context menu optionremove-local-server.reg: removes it when you're done
This lets you right-click your index.html and instantly preview it in a browser on localhost, which is required for loading GLB files and anything else that uses fetch() because of CORS restrictions. Make a change to the CONFIG, save the file, refresh the browser, and see the result in seconds instead of minutes.
Full setup instructions are in the companion tutorial (link soon). For now, just unzip the toolkit, update the file paths inside the VBS and REG files to wherever you saved them, and double-click add-local-server.reg to install the menu entry.
Step 4: Wire Your 3D Platformer in Storyline to Course Layers
This is where the 3D game becomes an actual learning experience. The game engine sends event data to Storyline variables, and your course responds with layers, feedback, and content.
How the Engine Talks to Storyline
The engine writes to several variables as the learner plays. Two patterns matter most:
LastActivatedItem: set whenever the learner interacts with a chest, lever, button, or crate. The value is the mesh's actual name from Blender (for example, chest, lever.001, button.001). When this variable's value contains any string in CONFIG.pauseOnItems, the entire game pauses until Storyline clears the variable. This is the canonical puzzle hook.
Hotspot variables: any mesh in your level whose name starts with hotspot_ becomes a proximity trigger. When the character walks within range, the engine sets a Storyline variable named after the mesh itself to true. So a mesh named hotspot_quest1 sets the variable hotspot_quest1 to true. There is no LastHitMesh lookup needed; you just watch the variable directly.
Create Your Variables
Open the Variables panel in Storyline and create the ones the engine writes to. The full list:
Variable | Type | Default | Purpose |
|---|---|---|---|
| Text | (empty) | Reports the name of any floor or wall the character touches |
| Text | (empty) | Reports the name of crates, chests, buttons, or levers interacted with. Pauses the game when its value contains a string from |
| Text | (empty) | Reports the character's current animation state |
| Number | 0 | Running total of coins collected |
| Number | 0 | Running total of keys collected |
| Number | 0 | Running total of hearts collected |
| Text | (empty) |
|
| True/False | False | Set to true when a lever is pulled |
| True/False | False | Set to true when a square button is pressed |
| Text | (empty) | Name of the chest the learner opened |
| Text | (empty) | Name of the crate the learner hit from below |
| True/False | False | One per hotspot mesh, named to match the mesh exactly |
Build Side Quest Layers
Create slide layers on the same slide as your web object. Name them based on what they'll contain:
Side Quest 1: triggered when the character touches a specific hotspot mesh
Side Quest 2: triggered by a different hotspot
Side Quest 3: triggered by another interaction
For each layer, add a trigger on the base slide:
Action: Show layer [Side Quest 1]
When: Variable changes
Variable: hotspot_quest1
Condition: If
hotspot_quest1is equal to True
The variable name (hotspot_quest1) must match the mesh name in your Blender file exactly. Any mesh whose name starts with hotspot_ is automatically registered as a hotspot by the game engine, and the variable it writes to is named after the mesh.
Puzzle Triggers (Levers, Chests, Buttons)
For interactive puzzle items, watch LastActivatedItem. For example, to trigger a puzzle layer when the learner presses a button named button.001:
Action: Show layer [Puzzle 3]
When: Variable changes
Variable: LastActivatedItem
Condition: If
LastActivatedItemis equal tobutton.001
Because button.001 contains the string button and button is in CONFIG.pauseOnItems, the game pauses the moment this variable is set. Your puzzle layer takes the stage. When the learner finishes the puzzle, add a trigger on the layer that sets LastActivatedItem back to a blank value:
Action: Adjust variable LastActivatedItem = (empty)
When: the learner completes the puzzle (clicks Continue, gets the answer right, etc.)
The moment that variable clears, the engine resumes the game, refocuses the keyboard, and the learner is right back where they left off. The same pattern works for any chest, lever, or button puzzle.
What Goes in the Side Quest Layers
This is where your training content lives. The 3D game is the engagement wrapper; the side quests are the actual learning moments. Some ideas:
A knowledge check, where the learner must answer a question correctly to continue
A drag-and-drop interaction, sorting items into the correct categories
A scenario, where the learner reads a situation and chooses the best response
A video or resource, a short clip explaining a concept
When the learner completes the side quest, close the layer. The game continues from where they left off. The character is still standing in the 3D world, right where they triggered the side quest.
Handling Game Completion
When the character reaches the flag at the end of the level, the engine fires several variables at once:
setStorylineVar("GameStatus", "VICTORY");
setStorylineVar("TotalCoins", window.score);
setStorylineVar("TotalKeys", window.keysCollected);
setStorylineVar("TotalHearts", window.heartsCollected);
The game also shows a built-in victory screen with a "Play Again" option and an "OK" button. The OK button calls a finishCourse() function that sets GameStatus to "COMPLETED", which is your cue to advance the slide.
Add a trigger on the base slide:
Action: Jump to slide [Results]
When: Variable changes
Variable: GameStatus
Condition: If
GameStatusis equal toCOMPLETED
On the results slide, you can display the learner's final stats using variable references: %TotalCoins% coins, %TotalKeys% keys, %TotalHearts% hearts.
Step 5: Test, Tweak, Repeat
A 3D platformer in Storyline runs as a browser game inside an iframe, and 3D games in a browser are finicky. Things that work perfectly in standalone testing might behave differently inside Storyline's iframe. Here's a testing workflow that keeps you sane.
Test Standalone First
Before embedding in Storyline, get the game working on its own. Open index.html on a local server (not by double-clicking the file, since GLB loading requires a server). Verify:
The board loads and looks correct
The character appears and animates
Walking, running, jumping, and crouching all work
The character auto-runs after a couple of seconds of continuous walking
Coins and keys are collectible
The flag triggers the victory screen
The console (F12) shows no errors
Test in Storyline
Publish to Review 360 (or use the local server shortcut). Verify:
The web object fills the slide
The game loads without hanging
Storyline variables update in the variables panel (use Ctrl+Shift+V to check)
Side quest layers appear when the character hits the right hotspots
Puzzle layers appear when interactive items are activated, and the game pauses behind them
Clearing
LastActivatedItemfrom a puzzle layer resumes the game and restores keyboard controlGame completion triggers the correct slide navigation
Common Issues
Character spawns underground: Your spawnY value is too low for your board geometry. Increase it.
Character is invisible: The charScale might be wrong, or the character GLB didn't load. Check the console for loading errors.
No collision with platforms: The mesh names in your Blender file might match CONFIG.collisionIgnore (like "ground" or "floor"). Either rename the meshes in Blender or update the ignore list.
Hotspots don't trigger: Make sure the mesh name starts with exactly hotspot_ (case-sensitive). The console will log the hotspot count when the board loads, so you can confirm the engine detected them.
Keyboard stops working after a puzzle: Storyline finished its puzzle layer but didn't clear LastActivatedItem. Add a trigger on the puzzle layer that sets it to blank. The engine watches for that transition and refocuses the iframe automatically.
A puzzle layer never opens: The puzzle's mesh name doesn't contain a string from CONFIG.pauseOnItems. Either rename the mesh (so it includes lever, chest, or button) or add the new keyword to pauseOnItems.
Game runs slowly: Large GLB files, uncompressed textures, or too many objects can tank performance. Compress your models, reduce polygon counts, and keep the level simple.
Mobile controls don't appear: The game auto-detects touch devices and shows on-screen buttons. If you're testing on desktop, you won't see them. The mobile layout pins a left/right pair to the bottom-left corner and arranges jump, action, dance, and crouch in a four-button diamond at the bottom-right.
The Debug Mode
The game has a built-in debug mode. Press the backtick key (`) to toggle it. Debug mode gives you:
A free-roaming orbit camera (click and drag to rotate, scroll to zoom)
Wireframe collision boxes on every platform
A real-time info panel showing character position, velocity, and collision data
A gizmo that lets you click and drag the character to reposition them
A noclip mode that disables collision so you can fly through walls
The settings panel (press Tab) lets you adjust camera zoom, height, follow speed, and deadzones in real time. This is invaluable for dialing in the camera feel without republishing.
Set CONFIG.allowDebug = false before your final publish to disable all debug features for learners.
What the Engine Handles for You
You don't need to touch most of the engine code. Here's what it does automatically:
Physics: Gravity, collision detection with all named meshes, ground detection, ceiling bonks, wall sliding, and edge detection. The character can't walk through walls or fall through floors.
Movement and auto-run: Walking, running, jumping (double jump supported), crouching, and dancing. The character automatically transitions from walk to run after a configurable delay of continuous travel, so the learner doesn't need a sprint key.
Camera: A smart follow camera with horizontal and vertical deadzones, configurable follow speeds for walking versus falling, and automatic Y-anchoring that prevents the camera from bouncing during jumps.
Collectibles: Coins spin and disappear with a pop animation when collected. Keys do the same. Hearts spring out of chests and float before becoming collectible. All counts update the HUD automatically.
Interactables: Crates can be hit from below (like Mario blocks) and drop coins. They turn from gold to gray when depleted. Springs launch the character upward. Levers trigger hidden platform bridges. Chests open with an animation and release hearts. Buttons activate events.
Puzzle pause: The engine listens to LastActivatedItem and freezes the entire game whenever its value contains a configured pause keyword. As long as Storyline is showing a puzzle layer, the world stops. Clearing the variable resumes play and steals keyboard focus back from Storyline so movement keys work immediately.
Moving platforms: Any mesh named block-moving travels back and forth between two waypoint meshes. The character rides the platform and moves with it.
Ladders: Meshes named ladder rise from underground when triggered (by a button or lever) and become climbable. The character grabs on and uses the climb animation.
Mobile support: Touch controls appear automatically on mobile devices. A left/right pair anchors to the bottom-left corner, and a four-button diamond (jump, action, dance, crouch) anchors to the bottom-right. Both clusters use percentage-based positioning so they sit correctly on any screen size. The game also enforces landscape orientation with a friendly rotate prompt.
Victory: When the character reaches the flag, the game shows an animated victory screen with a trophy, stars, score summary, and buttons to replay or finish.
Ideas for Training Scenarios
The platformer format works anywhere you want to gamify exploration and discovery:
Onboarding: New hires explore a virtual office building. Each room (hotspot) triggers an onboarding module: meet your team, learn the tools, review policies.
Safety Training: Workers navigate a construction site or factory floor. Hazard zones trigger safety briefings. Correct identification of all hazards unlocks the exit.
Product Knowledge: Sales reps explore a product showroom. Each display (hotspot) launches a product feature deep-dive. Collecting all keys proves mastery.
Compliance: Employees navigate a scenario-based world where each area presents a compliance challenge: data handling, workplace conduct, reporting procedures.
The game doesn't care what your side quests contain. It just provides the 3D world and the variable hooks. Your training content lives in Storyline layers, where you already know how to build effective interactions.
Conclusion
Building a 3D platformer in Storyline sounds ambitious, but the architecture is the same pattern we've been using all along: a self-contained HTML application communicating through SetVar and GetVar. The game engine handles the complex parts (physics, rendering, animation, input) and exposes a clean integration surface through simple Storyline variables.
Pick a character from Mixamo, snap some blocks together in Blender, drop the folder into Storyline as a web object, and wire up your layers. Your learners get an experience that feels like a real game, and you get the trackable, measurable interaction data that your LMS expects.
Grab the complete code below, swap in your own characters and levels, and turn your next compliance module into something learners actually want to play.
Resources
Mixamo: Free 3D characters and animations
Sketchfab Mixamo Characters: Hundreds of additional characters you can upload to Mixamo for auto-rigging
Animation Merger Tool: Combine multiple animation FBX files into one GLB
Kenney Platformer Kit: Free CC0 platformer assets
Part 2: Animated Walking Character: The 2D version of this concept
Three.js: The 3D rendering engine powering the game
GLB/glTF Format: The 3D file format used for characters and levels
Nathan Stoker
I build custom eLearning in Storyline, Rise and JavaScript, and I make the free tools and templates on this site. Need an interaction like this in your course? Let's talk.