< Scratch File Format (1.4)(Redirected from Scratch File Format/Sprite File)

Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.
Document stub.png This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (July 2017)
This is a technical description of the file format. For sprites in general, see Sprite.

A sprite file is used to save a single sprite that can be imported into other Scratch projects. They have the extension .sprite.

Structure

Perhaps confusingly, sprite files do not just contain a sprite object.

They actually contain a stage object encoded as an Object Table (the same as the project file contents). This is because global variables/lists need to be saved as well.

Unlike a project file, there is no preceding ScratchV02 header or info table; just the single object table for the stage.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.