Creating Statistics
Learn how to create and manage statistics in your project
Creating Statistics
Statistics let you track numerical game metrics — total kills, games played, highest score, win streaks, and more. You manage them from the Statistics page under Game Data in The Leap.
Step-by-Step Breakdown
Step 1: Navigate to Statistics
From the left sidebar, expand the Game Data section and click Statistics. This opens the Statistics page, which lists all statistics in your project.
Step 2: Select a Workspace
Before you can create or edit statistics, you need an active workspace. If you're currently on Main, open the workspace switcher in the header and select or create a workspace. If you haven't set one up yet, see Working with Workspaces first.
Step 3: Click "Create Statistic"
With a workspace active, click the Create Statistic button in the top-right corner of the page. This opens the Create New Statistic dialog.
Step 4: Fill In Statistic Details
Fill in the following fields in the dialog:
- Name — A unique identifier for this statistic (letters, numbers, and underscores only, e.g.
total_kills,games_played,highest_score). This cannot be changed after creation. - Icon — Click the icon field to open the icon picker and choose a visual icon for your statistic.
- Description — An optional text field to describe what the statistic tracks (e.g. "Total number of enemies defeated across all sessions").
Step 5: Create the Statistic
Click Create Statistic to save. Your new statistic appears in the statistics list on the page.
Exploring Statistic Flow
Once you've created statistics and connected them to other game elements, you can visualize how each statistic is used across your economy. In the statistics list, click the Explore Flow button (the green link icon in the Actions column) on any statistic row. This opens the Element Flow page, where you can see how the statistic is referenced and modified throughout your game systems.
Next Steps
With your statistics set up, continue to Creating Resources to keep building your game economy.