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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Clip extends string |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
CharacterSpriteProps<Clip> |
Returns
Section titled “Returns”Element