markers
The level's markers: named signals on the timeline. A script listens for the ones it wants, and looks them up.
markers.onfunction
markers.on([name: string,] f: function): connectionCalls f each time the song gets to a marker with that name, with the marker's values and then the marker: markers.on("DoShake", function(intensity, length, marker) ... end). With no name, f is called for every marker, with the marker alone.
| Value | Type | |
|---|---|---|
name | string | May be left out. |
f | function |
Gives: connection.
markers.namedfunction
markers.named(name: string): list of markerA list of the level's markers with that name, in the order of their beats.
| Value | Type | |
|---|---|---|
name | string |
Gives: list of marker.
markers.allfunction
markers.all(): list of markerA list of all the level's markers, in the order of their beats.
Gives: list of marker.
markers.nextfunction
markers.next(name: string or nil): marker or nilThe next marker the song has yet to get to: any, or the next one with that name. None left: nil.
| Value | Type | |
|---|---|---|
name | string or nil | May be left out. |
Gives: marker or nil.