Creating Your First Game
This guide walks you through creating your first interactive 3D game in G3Engine. You’ll learn the fundamentals of the editor, scene manipulation, and basic interactivity.Prerequisites
Before you begin:- Signed into G3Engine (via Email or Social login)
- Access to the Editor dashboard
What You’ll Build
A simple 3D scene with a cube that moves when you press a key - the foundation for any interactive game.{
"position": { "x": 0, "y": 0.5, "z": 0 },
"rotation": { "x": 0, "y": 0, "z": 0 },
"scale": { "x": 1, "y": 1, "z": 1 }
}
#6366f1)0.40.1- On Key Press (Event category)
- Move To (Action category)
- Drag from the exec output (white square) of “On Key Press”
- Connect to the exec input of “Move To”
- Connect the cube object to the “Target” input of “Move To”
Visual Scripting Pin Types:
- White square = Execution flow
- Red circle = Boolean
- Green circle = Float (decimal number)
- Blue circle = Integer
- Pink circle = String (text)
- Yellow circle = Vector (3D position)
- Blue rounded = Object reference
{
"version": 1,
"exportedAt": "2026-03-04T10:30:00.000Z",
"objects": [
{
"id": "uuid-here",
"name": "Cube 1",
"type": "box",
"position": { "x": 0, "y": 0.5, "z": 0 },
"rotation": { "x": 0, "y": 0, "z": 0 },
"scale": { "x": 1, "y": 1, "z": 1 },
"material": {
"color": "#6366f1",
"roughness": 0.4,
"metalness": 0.1
},
"visible": true
}
],
"metadata": {
"objectCount": 1,
"hasLights": true,
"hasWeb3": false
}
}
Common Issues
Object appears completely black
Object appears completely black
You need to add lighting to your scene. Add an Ambient Light and a Directional Light from the Asset Library.
Transform gizmo not showing
Transform gizmo not showing
Make sure an object is selected by clicking it in the viewport or Scene Graph. Check that you’re in the correct transform mode (W, E, or R).
Visual script nodes won't connect
Visual script nodes won't connect
Pin types must be compatible. Check that you’re connecting matching types (e.g., exec to exec, float to float). Execution pins are white squares, data pins are colored circles.
Play mode shows nothing
Play mode shows nothing
Check that your camera is positioned correctly in the scene. The default camera looks at the origin (0, 0, 0) from position (0, 5, 10).
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| W | Translate/Move mode |
| E | Rotate mode |
| R | Scale mode |
| Space | Play/Stop |
| Cmd/Ctrl + Z | Undo |
| Cmd/Ctrl + Shift + Z | Redo |
| Delete | Remove selected object |
Tips for Success
Start Simple
Begin with basic shapes and simple interactions. You can always add complexity later.
Use the Scene Graph
Name your objects descriptively in the Scene Graph (Left Panel) to stay organized as your scene grows.
Test Frequently
Hit Play often to test your interactions. It’s faster to catch issues early.
Learn Node Scripting
Master a few node types at a time. Start with Events (Begin Play, Key Press) and Actions (Move, Rotate).