By completing this step in the Tagged Lights Puzzle tutorial, you'll have set up your level with all the props and devices you'll need to create a puzzle where the player must find the right combination of lights on or off to solve.
This example uses the following props and devices.
1 x Player Spawn Pad device: This device defines where the player spawns at the start of the game.
4 x Customizable Light devices: These are the lights used as the visual representation of the internal game state of the Verse-authored device. The device script will turn them on and off.
4 x Button devices: The player uses the buttons to toggle sets of lights. The Verse-authored device listens to the buttons’
InteractedWithEventto update the game state accordingly.1 x Item Spawner device: This is used to reward the player when the puzzle is solved.
Props for walls, floors, and ceilings to create a dark room. This example uses pieces from the Haunted gallery, which you can find in the Content Browser under Fortnite > Props > Haunted.
Follow these steps to set up your level:
Create an enclosed area using walls, floors, and ceilings. Ensure the room is dark enough for lights to be easily visible.
Add 4 Button devices side by side in the enclosed area.
Add the Player Spawn Pad device for the player to spawn close to the buttons.
Add 4 Customizable Light devices pointing at a wall or a part of the room where the player can easily see them while interacting with the buttons.
Select each light in the Outliner to open its Details panel.
In the Details panel for each Customizable Light device:
Under User Options, set Light Type to Spot.
In the Components list, select SpotLight and change the Outer Cone Angle, so that the light cones don’t overlap and the player can distinguish their on / off state.
Add the Item Spawner device in a spot that’s visible to the player when they solve the puzzle.
Select the Item Spawner device in the Outliner to open its Details panel.
In the Details panel for the Item Spawner device, under User Options:
Enable Spawn Item on Timer.
Set Time Before First Spawn to 0.
Click Add Element to Item List and set Pickup to Spawn to Banana.
Under Advanced, disable Enabled at Game Start.
Create a new Verse device named tagged_lights_puzzle using Verse Explorer, and drag the device into the level. (For steps on how to create a new device in Verse, see Create Your Own Device Using Verse.)
Your level should look similar to this setup:
Next Step
In the next step of this tutorial, you’ll create a custom gameplay tag and assign it to the lights to be able to find them all without having to set up references in the Editor.