Verse Library verse

01 Device

Manages cinematic intro sequences by controlling cameras and timers upon island start.

verse-library/title-sequence-3-designing-the-title-screen-in-unreal-editor-for-fortnite/01-device.verse

# TitleSequence.verse
# This script acts as the Director, controlling the flow of the title sequence.

using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/Symbols }

# We define our "Director" device. 
# Think of this as the control room for our mini-movie.
Title_Sequence_Device := class(creative_device):

    # These are our "Actors" (the devices we control).
    # We use 'constant' for the splash camera because it never changes role.
    # We use 'editable' for the title camera so we can swap it out in the editor if needed.
    splash_camera: constant fixed_point_camera_device = create(fixed_point_camera_device)
    title_camera: editable fixed_point_camera_device = create(fixed_point_camera_device)
    
    # The UI element we designed earlier
    title_hud: editable hud_message_device = create(hud_message_device)
    
    # A timer to manage the flow. 
    # Think of this like the Storm Timer: it counts down, then triggers an event.
    sequence_timer: timer = create(timer)

    # This function runs when the island starts.
    # It’s like the "Match Start" event.
    OnBegin<override>()<suspends>: void := 
    begin
        # 1. Start with a black screen or splash.
        # We tell the splash camera to "Take Control" of the player's view.
        # This is like forcing the player to watch a cutscene.

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.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in