Bounce High: Your First Crash Pad Code
Tutorial beginner

Bounce High: Your First Crash Pad Code

Updated beginner

Bounce High: Your First Crash Pad Code

Do you hate falling off cliffs? Do you love bouncing back up? Let’s build a safety net for your players. We will use a Crash Pad device. It saves players from fall damage. It bounces them high into the air. This is perfect for parkour maps. You can make huge jumps safe. Let’s code it!

What You'll Learn

  • How to place a Crash Pad device.
  • What a "device" is in UEFN.
  • How to connect inputs to actions.
  • How to test your bounce in Play Mode.

How It Works

Imagine you are building a LEGO tower. You place a special block at the bottom. When you drop a brick, it bounces instead of breaking. That is what a Crash Pad does. It catches players. It stops them from getting hurt.

In Fortnite Creative, we use Devices. A device is like a robot. It has a job. It waits for something to happen. Then it does its job.

The Crash Pad has two main jobs. First, it protects players. Second, it bounces them. You do not need complex code for this. The device does the heavy lifting. You just need to place it correctly.

Think of the device as a trampoline. You do not build the springs yourself. You just buy the trampoline and put it in the yard. In UEFN, the Crash Pad is your trampoline. We will place it under a high platform. This keeps players safe.

Let's Build It

We will make a simple parkour level. There will be a high wall. There will be a Crash Pad below it. When a player falls, they bounce. They stay safe.

Step 1: Open Your Island

Start a new island or open an old one. Make sure you are in Create Mode. This is the mode where you build. You see the inventory on the side.

Step 2: Find the Crash Pad

Look at the device list. Search for "Crash Pad". It looks like a bouncy mat. Click it to add it to your inventory.

Step 3: Place the Pad

Go to your island. Find a tall cliff or build a high platform. Place the Crash Pad on the ground below it. You want it ready to catch anyone who falls.

Step 4: Add Code

Now we add some Verse code. This code helps us manage the pad. It is simple. It just tells the game, "This is our Crash Pad."

Copy this code into a new Verse script in your project.

using { /Fortnite.com/Devices }

# This is our main script file.
# It controls our Crash Pad.

# We define a variable for our Crash Pad.
# A variable is a box that holds data.
# Here, the box holds the device.
my_crash_pad := crash_pad_device{}

# This function runs when the game starts.
# It is called "on_begin".
on_begin() -> void:
    # We tell the device to be active.
    # It will now catch players.
    my_crash_pad.SetEnabled(true)
    
    # We print a message to the log.
    # This helps us know it is working.
    print("Crash Pad is ready to bounce!")

Walkthrough

Let’s look at the code.

First, we use using. This is like opening a toolbox. We need the Crash Pad tools.

Next, we create my_crash_pad. This is a variable. It is a name tag for our device. It points to the Crash Pad in the world.

Then, we have on_begin(). This is a function. A function is a set of instructions. on_begin means "do this when the game starts."

Inside, we use SetEnabled(true). This turns the device on. It is like flipping a light switch. The Crash Pad is now active.

Finally, we use print. This writes a note to the developer log. It is like leaving a sticky note for yourself.

Try It Yourself

Can you make the bounce higher? The Crash Pad has settings. Try changing the bounce height in the device options. You can also add a second Crash Pad. Place it next to the first one. See if players can land on both.

Hint: Look at the device panel on the right. Change the "Bounce Height" number. Try 500. Then try 1000. Which feels better?

Recap

You built a Crash Pad! You placed a device. You added simple Verse code. You made a safe zone for players. Great job! You are now a Fortnite island creator. Keep building and bouncing!

References

  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-crash-pad-devices-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite/using-crash-pad-devices-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/fortnite-creative-glossary
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-devices-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/uefn/verse-api/fortnitedotcom/devices/crash_pad_device

Verse source files

Turn this into a guided course

Add using-crash-pad-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