Lingo Dictionary > Lingo by Feature > Sprites

 

Sprites

These Lingo terms are for sprites.

 
Sprite events

Use the on beginSprite and on endSprite event handlers to contain Lingo that you want to run when a sprite begins or ends.

 
Assigning cast members to sprites

Use castLibNum, member (sprite property), or memberNum to specify a sprite's cast member.

 
Sprite rotation

Use the rotation sprite property to rotate sprites.

 
Dragging sprites

Use these terms to set how the user can drag sprites:

constrainH()

moveableSprite

constrainV()

sprite...intersects

constraint

sprite...within


 
Sprites and Lingo

Use these terms to manage how Lingo controls sprites:

puppet

sendAllSprites

puppetSprite

sendSprite

scriptInstanceList

spriteNum

scriptNum


 
Drawing sprites on the Stage

Use these terms to control how Director draws a sprite on the Stage:

blend

skew

flipH

trails

flipV

tweened

ink

updateStage

quad

visible (sprite property)

rotation


 
Sprite dimensions

Use these terms to check and set the size of a sprite's bounding rectangle:

bottom

right

height

top

left

width

quad

zoomBox


You can also manipulate a sprite's bounding rectangle with Lingo for rectangles. See Points and rects.

 
Sprite locations

Use the loc, locH, and locV sprite properties to check and set sprite locations.

 
Sprite color

Use these terms to check and set a sprite's color:

backColor

color (sprite property)

bgColor

foreColor