Build a Hoverboard Race: Speed, Checkpoints, and Victory!
Tutorial beginner

Build a Hoverboard Race: Speed, Checkpoints, and Victory!

Updated beginner

Build a Hoverboard Race: Speed, Checkpoints, and Victory!

Do you want to feel the wind in your hair? Do you love zooming around on a hoverboard? In this tutorial, we will build a fun hoverboard race. You will set up a track. You will add checkpoints. You will make a winner screen. It is going to be super fast and super cool.

What You'll Learn

  • How to place devices to make a race track.
  • How to use variables to count laps.
  • How to write Verse code to track progress.
  • How to create a scene graph for your race items.

How It Works

Imagine you are baking a cake. You need ingredients. You need a bowl. You need an oven. In Fortnite Creative, we need devices. Devices are like building blocks. They do special jobs.

We need three main things for our race.

  1. Hoverboards: So players can zoom.
  2. Checkpoints: To count laps.
  3. A Finish Line: To know who won.

Think of a variable like a scoreboard. It holds a number. The number changes as the game goes on. We will use a variable to count how many laps a player has done.

We also need a scene graph. This is just a fancy name for a family tree of items. Imagine your race track is a house. The track is the house. The checkpoints are rooms. The hoverboards are toys in the rooms. The scene graph keeps everything organized. It tells the game which items belong together.

Let's Build It

First, open Fortnite Creative. Go to the Island tab. Place some Race Checkpoint devices. Line them up in a circle. This is your track.

Next, place a Vehicle Spawner. Set it to spawn a Hoverboard. Place it at the start.

Now, let’s write some code. We need Verse to make the checkpoints work together. We will use a simple script. This script listens for players hitting checkpoints.

Copy this code into a new Verse file in your island.

# This is our main script for the race.
# It listens for events and counts laps.

using { /Fortnite.com/Devices }
using { /Verse.org/Sim }

# This is our "Scoreboard" variable.
# It holds the current lap count.
var current_lap: int = 0

# This function runs when a player hits a checkpoint.
# "player" is the person playing the game.
# "checkpoint" is the device they hit.
OnCheckpointHit(player: player, checkpoint: race_checkpoint_device) -> void:
    # We add 1 to the lap count.
    current_lap += 1
    
    # Let's say the player is happy!
    # We print a message to the console.
    Print($"You hit checkpoint {current_lap}!")
    
    # If they finish all laps, they win!
    if current_lap >= 5:
        Print("You won the race!")
        # Here you could add code to show a trophy.

Let’s look at this code closely. The var current_lap: int = 0 line creates our scoreboard. It starts at zero. The OnCheckpointHit part is a function. A function is a list of steps. It runs when something happens. Here, it runs when a player hits a checkpoint. The Print line shows text on the screen. It helps you test your code.

Now, let’s organize our items. This is the scene graph part. In the World Outliner, you will see all your items. Group your checkpoints together. Name one group Track_Checkpoints. Group your spawner in a group called Start_Zone. This makes it easy to find things later. It keeps your island tidy.

Try It Yourself

You have the basics! Now it is your turn to make it better.

Challenge: Add a second checkpoint group. Make it so players must hit both groups to get a point. Change the code to count points instead of just laps.

Hint: You can create two different variables. One for Group_A_Laps and one for Group_B_Laps. Check which checkpoint was hit in your function. Use an if statement to decide which variable to add to.

Recap

You built a hoverboard race! You placed devices. You wrote Verse code. You organized your scene graph. You used variables to count progress. Great job! Keep experimenting. You can add obstacles. You can add power-ups. The sky is the limit.

References

  • https://dev.epicgames.com/documentation/en-us/fortnite/create-a-hoverboard-race-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/template-islands-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite/template-islands-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/create-a-hoverboard-race-in-fortnite-creative
  • https://github.com/vz-creates/uefn

Verse source files

Turn this into a guided course

Add create-a-hoverboard-race-in-fortnite-creative to your free study plan — we'll suggest related pages and stitch the lot into one compile-checked, self-guided lesson with worked examples and quizzes.

Original tutorial generated by Verse Island from the Verse/UEFN knowledge base, with references to the Epic Games sources above. Code is validated against the knowledge base.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in