Sprite sheet
A sprite sheet played as an animation.
- Kind
- Layer · Backgrounds
- Script name
sprite- Cost to draw
- Moderate
- Reacts to
- sound

Sprite sheet
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Picturesource | image file | none | – |
Columnscolumns | whole number | 4 | 1 to 64 |
Rowsrows | whole number | 4 | 1 to 64 |
Framesframes | whole number | 0 | 0 to 40960 plays every cell |
Frames a secondfps | number | 12 | 0.5 to 60 |
Playsmode | choice | Round and round | Round and round, Back and forth, Once, A frame a beat |
Blend between framessmoothing | on or off | off | – |
Crisp pixelscrisp | on or off | off | For pixel art |
Fitfit | choice | Whole | Whole, Fill, Stretch |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Sprite sheet:
scene.set("Sprite sheet", "fps", 60);scene.animate("Sprite sheet", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Sprite sheet", "fps", 60);scene.animate("Sprite sheet", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetSprite sheet
Parameter Namefps
Parameter Value60
What every layer has
Besides its own settings, every layer has its opacity, blend, placement, quick effects and an effects stack. They're listed once, on the layers page.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.