Disappearing Platform On Touch Using Verse
Platforms that disappear when you land on them are a staple of platforming game modes like obstacle courses. They require the player to act quickly and plan where they're going so they don't fall.
By following this tutorial, you'll learn how to build a platform that disappears when the player touches it and reappears a random number of seconds later using Verse in Unreal Editor for Fortnite (UEFN). This example shows how to create an area where the player must jump from platform to platform to avoid falling. The complete script is included at the end of this guide for reference.
Verse Language Feature Used
- spawn: The
spawnexpression is used to call the asynchronous function that makes the platform reappear after a random number of seconds.
Verse APIs Used
Sleep(): TheSleep()API is used to insert the delays between the platform disappearing and reappearing again after a random amount of time.GetRandomFloat(): TheGetRandomFloat()API is used to compute a random amount of time before the platform reappears.- Editable Properties: Four properties are exposed to UEFN – three floats to control the disappearance and reappear delays of the platform and the platform reference itself.
- Device Events: You'll use the Trigger device's
TriggeredEventto know when a player lands on the platform.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.