User Guide
650 Chapter 14: Properties
Example
The following statement sets the variable oldColor to the background color of sprite 5:
-- Lingo syntax
oldColor = sprite(5).backColor
// JavaScript syntax
var oldColor = sprite(5).backColor;
The following statement randomly changes the background color of a random sprite between
sprites 11 and 13 to color number 36:
-- Lingo syntax
sprite(10 + random(3)).backColor = 36
// JavaScript syntax
sprite(10 + random(3)).backColor = 36;
See also
Sprite
backdrop
Usage
sprite(whichSprite).camera{(index)}.backdrop[index].loc
member(whichCastmember).camera(whichCamera).backdrop[index].loc
sprite(whichSprite).camera{(index)}.backdrop[index].source
member(whichCastmember).camera(whichCamera).backdrop[index].source
sprite(whichSprite).camera{(index)}.backdrop[index].scale
member(whichCastmember).camera(whichCamera).backdrop[index].scale
sprite(whichSprite).camera{(index)}.backdrop[index].rotation
member(whichCastmember).camera(whichCamera).\
backdrop[index].rotation
sprite(whichSprite).camera{(index)}.backdrop[index].regPoint
member(whichCastmember).camera(whichCamera).\
backdrop[index].regPoint
sprite(whichSprite).camera{(index)}.backdrop[index].blend
member(whichCastmember).camera(whichCamera).backdrop[index].blend
sprite(whichSprite).camera{(index)}.backdrop.count
member(whichCastmember).camera(whichCamera).backdrop.count
Description
3D camera property; a 2D image that is rendered on the camera’s projection plane. All models in
the camera’s view appear in front of the backdrop.
Backdrops have the following properties:
Note: These properties can also be used to get, set, and manipulate overlays. For detailed
information, see the individual property entries.
loc (backdrop and overlay)
indicates the 2D location of the backdrop, as measured from the
upper left corner of the sprite.
source indicates the texture used by the backdrop.
scale (backdrop and overlay) is the number by which the height and width of the texture are
multiplied to determine the dimensions of the backdrop.