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

CharacterSprite

CharacterSprite<Clip>(props): Element

Draws a character as a sprite: a Player, an Npc or any character the controller moves, with no model, capsule or placeholder body. Its clips come from the character’s movement by name, idle, walk, run, jump and fall, and playClip plays a one-shot over them, as over a 3D character’s. A character view, for characters({ view }) or a prefab’s view: view: (props) => <CharacterSprite {...props} sheet={hero} />.

Type Parameter
Clip extends string
Parameter Type
props CharacterSpriteProps<Clip>

Element