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

Sprite

Sprite<Clip>(props): Element

Draws the entity it sits in as one frame of a sprite sheet: a loop, a held frame, and every one-shot playClip plays, the frame worked out from the play’s tick at the tick the entity is drawn at. Every sprite of one sheet and blend is one draw. Under the scene’s Camera2D it lies flat on the 2D plane, or stands with upright; under a 3D camera it faces the camera. Unity’s SpriteRenderer with its Animator, Godot’s AnimatedSprite2D. A room draws nothing of it.

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

Element