Sparkle Power: Add Glows to Your Island
Unverified — this example may not compile as-is.
The Verse code below did not pass our automated compile check, so it isn't marked verified and is hidden from the guide listing. The explanation may still be useful, but treat the code as a draft and adapt it before use.
Sparkle Power: Add Glows to Your Island
Have you ever picked up a power-up in a game and felt a rush of excitement? Visuals help players feel that rush. We will build a simple system. When a player grabs an item, they will glow. It looks cool and tells everyone they are special.
What You'll Learn
- What a Visual Effect Powerup is.
- How to make items glow when picked up.
- How to change the glow color.
- How to link devices together.
How It Works
Imagine you are playing a game. You find a magic potion. When you drink it, you get stronger. In Fortnite Creative, we can make this happen. We use a Visual Effect Powerup. This is a special device. It makes things shine. It can make a player glow. It can make an outline appear.
Think of it like a sticker. You stick the sticker on the player. The sticker glows. This happens when they do something cool. Maybe they pick up health. Maybe they open a chest. You can choose the color. You can choose how long it lasts. This makes your island look professional. It gives feedback to the player.
Let's Build It
We will build a "Hero Zone." When a player steps on a special mat, they get a green glow. This shows they are a hero. We will use two devices. One is a Visual Effect Powerup. The other is a Trigger Volume.
First, place a Trigger Volume. This is a box in the world. When a player enters the box, something happens. Next, place a Visual Effect Powerup. This device creates the glow. Now, we connect them. We send a signal from the volume to the powerup. The signal says, "Time to glow!"
Here is how the code looks. This code runs when the game starts. It sets up the connection.
# This is our main script file.
# It runs when the island starts.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Fortnite.com/Characters }
# We define our devices here.
# Think of these as names for our tools.
hero_zone_manager := class(creative_device):
# These properties are set in the UEFN editor.
# Drag your placed devices into these slots.
@editable
MyTrigger : trigger_device = trigger_device{}
@editable
MyGlow : vfx_powerup_device = vfx_powerup_device{}
# This function runs when the game starts.
OnBegin<override>()<suspends> : void =
# We listen for players entering the trigger.
# OnTriggered fires when any agent activates the trigger.
MyTrigger.TriggeredEvent.Subscribe(OnPlayerEnteredTrigger)
# This handler runs each time the trigger fires.
OnPlayerEnteredTrigger(Agent : ?agent) : void =
# Cast the agent to a fort_character so we can apply the effect.
if (Player := Agent.GetFortCharacter[]):
# Activate the glow on the player who entered.
# Color and duration are configured on the device in the editor.
# note: vfx_powerup_device does not expose a runtime SetColor API;
# set the color and duration in the device's property panel.
MyGlow.Activate(Agent)```
Let's look at the important parts. The `MyTrigger` is the box. The `MyGlow` is the sparkle device. The `TriggeredEvent` event waits for a player. It is like a doorbell. When someone rings it, we run the code inside. The code tells the glow to turn on. It picks the color Apple Green. This is a bright, happy green.
In UEFN, you can also do this without code. You can drag and drop connections. Right-click the trigger. Select "Bind Output." Connect it to the glow. This is easier for beginners. But code gives you more control. You can change colors easily. You can add more effects later.
## Try It Yourself
Now it is your turn to create magic. Build a "Villain Zone." When a player enters, they should glow red. Red means danger or bad guys. Try changing the color to `Crimson` or `Dark_Red`. Make the glow last for ten seconds. Can you make it pulse?
Hint: Look at the `SetVisualEffect` command. You can change the `Color` argument. Try different colors from the list. See which one looks best for a villain.
## Recap
Visual Effect Powerups add life to your island. They give players feedback. Glows make actions feel important. You can use them for health, shields, or just fun. Experiment with colors. Experiment with timing. Your island will look amazing.
## References
* https://dev.epicgames.com/documentation/en-us/fortnite/using-visual-effect-powerup-devices-in-fortnite-creative
* https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-visual-effect-powerup-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-devices-in-fortnite
* https://dev.epicgames.com/documentation/en-us/fortnite-creative/create-a-dungeon-crawler-game-in-fortnite-creative
Verse source files
- 01-device.verse · device
Turn this into a guided course
Add using-visual-effect-powerup-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.
References
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.