Skip to content

anim-format (runtime format) / remapPlayhead

Function: remapPlayhead() ​

ts
function remapPlayhead(
   position, 
   total, 
   once
): object;

TIME REMAP (owner 2026-11-23): the inner frame shown + position of an instance whose inner position is keyed (position, a frame of its symbol, fractions = between frames): past the end it wraps, or holds the last frame when once (play once / stop at end). The editor (engine instanceAt) and the exporter (a remapped item = this pos as a fractional ff with loop: "single") both call this.

Parameters ​

ParameterType
positionnumber
totalnumber
onceboolean

Returns ​

object

NameType
framenumber
posnumber

HereSplash — 2D animation for the web