# We need the Trick Tile device tools
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
# This is the main script for our island
MyIsland := class(creative_device):
# This is our Trick Tile device.
# Drag your Trick Tile from the editor onto this property.
@editable
TrickTile : trick_tile_device = trick_tile_device{}
# This is our "brain" that starts when the game begins
OnBegin<override>()<suspends>:void=
# We create a variable called 'wait_time'
# It holds the number 2.0 (seconds)
wait_time := 2.0
# We start a forever loop
loop:
# We wait for a player to touch the tile
TrickTile.ActivatedEvent.Await()
# When touched, we hide the tile
TrickTile.Hide()
# We wait for the time in our variable
Sleep(wait_time)
# Then we show the tile again
Verse Library
verse
01 Device
Creates a looping mechanism that hides and shows a trick tile platform after player activation and delay.
verse-library/wait-for-toggledelay-seconds/01-device.verse
Sign in free to read the full source 🌴
This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.