Skip to content

1681-engine / index / clipMarkers

Function: clipMarkers() ​

ts
function clipMarkers(sheet, layer?): Record<string, ClipMarker[]>;

Defined in: src/anim/parseAseprite.ts:125

Markers for every clip from the sheet's cel cues: wherever a clip shows a sheet frame whose cel carries user data, a marker of that data at that position of the clip. A ping-pong shows a frame twice a round trip, so it fires twice, as a footstep should. layer keeps only the cues of one layer (a layer kept for marks, say "events").

Parameters ​

ParameterType
sheetAsepriteSheet
layer?string

Returns ​

Record<string, ClipMarker[]>

Released under the MIT License.