Skip to content

1681-engine / index / sliceAt

Function: sliceAt() ​

ts
function sliceAt(slice, frame?): AsepriteSliceKey | undefined;

Defined in: src/anim/asepriteSlices.ts:12

The key of slice in effect on sprite frame frame: Aseprite keys a slice on the frame it changes and holds it until the next key, so the last key at or before the frame. Before the first key the slice is not there (undefined).

Parameters ​

ParameterTypeDefault value
sliceAsepriteSliceundefined
framenumber0

Returns ​

AsepriteSliceKey | undefined

Released under the MIT License.