Overview
A script is needed to keep various audio and visual elements of the game in sync due to the game having an “Act to the Beat” Mechanic.
A Metronome is needed that sends out an event at the set BPM that other playmaker state machines can react from = An Event Metronome.
How it should work:
The script should activate upon the associated track playing and then run until the end of the scene / level.
This script should send out an “Event” at the speed of the beats per minute set in this script.
The event is compatible with playmakers FSM system. It should send that event to an FSM location set by the designer in this script.
Exposed Inputs the designer can set on the script:
Audio File Location = The script activates it’s metronome when the audio file starts to play.
BPM = The beats per minute that the metronome runs from.
FSM Location = The asset location that holds the (Playmaker) Fixed State Machine
FSM Event Name = The name of the event the script sends at every beat to the FSM location