|Object, action and properties|
Alambik Script instructions don't need a lot of confusing symbols or complicated syntax in order to generate stunning performance. Alambik's simplicity, in fact, makes it a natural and intuitive language. Consider its basic structure: every Alambik instruction starts with the name of an object and ends with an action to be performed on that object. The object is always a noun, the action always a verb.
Sometimes a third word can be inserted between the object and
its action. This word, which can be an adjective, a noun, or in
rarer cases, a verb, specifies a property for the object. This
basic structure aside, all Alambik instructions end in parentheses ()
in order to provide space for the passing of parameters. Multiple parameters
for a single instruction must be separated by commas.
An object is any "thing" in Alambik that you might want to move, manipulate, or modify. Alambik instructions let you manipulate objects. The instruction picture.position.set (@ObjectID,0,0), for example, manipulates a picture object by changing its position.
Properties allow you to get the "vital stats" of an object in order to modify its characteristics. Properties determine how an object acts. Many objects hold common properties. For example, all visual objects possess a property called "position." This property controls the positioning of an object on the screen. For example:
Actions let you perform operations using Alambik objects. For example:
Variables allow you to store numbers and text which can be modified during
the course of a script's runtime. Variables are designated by names which
can contain any sequence of numbers or letters. Click here
to see the different types of variables used in Alambik Script.