< Scratch File Format (1.4)

This is part of a technical description of the file format.

Entries in an Object Table are known as Objects. There are two kinds of objects:

In Scratch, pretty much everything — the stage, a sprite, a list, a block, a variable watcher — is an object. An object has a number of attributes, in the same way that each sprite can have its own variables. Most objects have a "name" attribute. For example, the stage's attributes include a list of sprites on the stage, a dictionary of global variables, a list of backdrops, and the currently selected backdrop.

See Object-Oriented Programming for further explanation of objects.

Structure

All objects (excluding inline values) have the following structure:

  • classID: one byte describing the type of object.
...a couple of extra bytes if it's a User-class Object, describing the version and how many fields the object has...

See Also


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