Build a Gravity-Defying Octane Racing Track
Tutorial beginner compiles

Build a Gravity-Defying Octane Racing Track

Updated beginner Code verified

Build a Gravity-Defying Octane Racing Track

Welcome, creators! Have you ever wanted to drive a car like it is a rocket? You can do that in Fortnite Creative. We are going to build a fun racing track. You will use the Octane Spawner device. This device lets players drive fast, jump high, and stick to walls. It feels like playing Rocket League. You will learn how to place the car and set up the track. Let's make something awesome!

What You'll Learn

  • What the Octane Spawner device is.
  • How to place it in your island.
  • Why the car sticks to walls.
  • How to build a simple race track.

How It Works

The Octane Spawner is a special device. It gives players a car. This car is not normal. It has rocket boosters. It can fly. It can jump very high. It is perfect for crazy races.

Think of the Octane like a toy car with jet engines. When you press boost, it goes super fast. It can drive up walls. This is called "wall driving." The wheels stick to the wall. They hold on tight. This lets you drive on ceilings too.

The car also handles slopes differently. If you drive up a hill, it slows down. You need to boost to keep going. If you drive down a hill, it speeds up. It can go very fast! This makes racing exciting. You must time your boosts. You must control your speed.

Let's Build It

We will build a simple track. It will have a start line and a wall to drive on. We will use the Octane Spawner. We will also add a Player Spawn Pad. This is where players start.

Step 1: Place the Start Line

First, place a Player Spawn Pad. This is where players appear. Place it on the ground. Make sure it is flat.

Step 2: Add the Octane

Now, add the Octane Spawner. Find it in the Content Browser. Drag it onto your island. Place it near the Player Spawn Pad. You can change its name. Name it "My Race Car". This helps you find it later.

Step 3: Build the Wall

Build a tall wall next to the track. Make it smooth. No bumps. The Octane needs a flat surface to stick to. You can use standard walls. Or use a ramp. A ramp is great for speed.

Step 4: Test It!

Play your island. Click the Player Spawn Pad. You will get the Octane. Drive it. Try to drive up the wall. Hold the boost button. You will stick to the wall. You are flying!

The Code Behind the Magic

In Verse, we use code to make things happen. We do not just place devices. We tell them what to do. Here is a simple example. This code creates a spawner. It puts the Octane in the game.

# This is a comment. It explains the code.
# We are making a spawner for the Octane.

using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Verse.org/Simulation }

octane_race_example := class(creative_device):

    # Reference the Octane Spawner placed in the editor.
    # Drag your Octane Spawner device onto this property in the Details panel.
    @editable
    MySpawner : vehicle_spawner_octane_device = vehicle_spawner_octane_device{}

    # OnBegin runs automatically when the game starts.
    OnBegin<override>()<suspends> : void =
        # Enable the spawner so players can claim the Octane.
        # note: vehicle_spawner_octane_device exposes Enable() to activate the device at runtime.
        MySpawner.Enable()```

Let's look at this code. `octane_race_example` is a class. A class is a set of instructions. It tells the computer what to do. `octane_spawner_device` is the real device type in Verse. `@editable` lets you connect the device you placed in the editor. `Enable()` turns it on when the game starts. This is how we control the game.

## Try It Yourself

Can you make the Octane jump higher? Try adding a ramp. Make it steep. Drive up the ramp. Use boost at the top. See how high you fly!

**Hint:** The steeper the ramp, the higher the jump. But watch out for speed! You need boost to stay in the air.

## Recap

You built a gravity-defying race track. You used the Octane Spawner device. This device gives players a rocket car. The car sticks to walls. It goes fast on slopes. You learned how to place the device. You learned how to test it. Great job, creator!

## References

- https://dev.epicgames.com/documentation/en-us/fortnite/using-octane-spawner-devices-in-fortnite-creative
- https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-octane-spawner-devices-in-fortnite-creative
- https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-devices-in-fortnite-creative
- https://dev.epicgames.com/documentation/en-us/fortnite/using-item-spawner-devices-in-fortnite-creative
- https://dev.epicgames.com/documentation/en-us/fortnite/conditional-button-device-design-examples-in-fortnite-creative

Verse source files

Turn this into a guided course

Add using-octane-spawner-devices-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