Verse Library verse

01 Device

Connects a note sequencer to a prop mover to synchronize music loops with animated dancer movement.

verse-library/beacon-3-piano-rabbit/01-device.verse

# We need to import our tools
using { /Fortnite.com/Devices }
using { /Fortnite.com/Devices/Patchwork }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

# This is our main script. It is a creative_device.
# A creative_device is the base class for all Verse scripts
# that live in a UEFN level.
PianoRabbitScript := class(creative_device):

    # This is a Variable.
    # It will hold the Note Sequencer device.
    # Think of it as a remote control for the music.
    # note: note_sequencer_device is the real UEFN device type.
    @editable
    NoteSeq : note_sequencer_device = note_sequencer_device{}

    # This is another Variable.
    # It will hold the Prop Mover.
    # Think of it as the dancer.
    # note: prop_mover_device is the real UEFN device type.
    @editable
    Dancer : prop_mover_device = prop_mover_device{}

    # This is a Function.
    # A function is a recipe. It does one job.
    # This function starts our music.
    OnBegin<override>()<suspends> : void =
        # Now we listen for events.

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