Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readSpriteMarks

readSpriteMarks(step, entity, sheet): readonly string[]

The marks entity’s one-shot of sheet reached on step.tick: each mark of a frame that first shows on this tick, such as the swing’s hit, so a room deals the damage on the tick the pages show it. Two in one tick are both read, and a held clip reads none again. The view’s loop is the page’s, and its marks are never read here. Written in place: read it at once.

Parameter Type
step SystemStep
entity Entity
sheet SpriteSheet

readonly string[]