holmes | survey | calendar | course overview | skills check 1 | skills check 2.1 | skills check 2.2 | if-then skills check | intersects and repeat loops | sound | shockwave | quicktime | video tracking | custom handlers | pc scripting 1 | pc scripting 2 | qtvr | ezio | final project | student links
breakout tutorial quicklinks | game1 | game2 | game3 | game4 | game5 | game6 | game7
TIFFANY HOLMES>INTRODUCTION TO LINGO
EVENTS>Examples
on exitframe on mousewithin on mouseleave
on mouseup on mouseenter on mousedown
SPRITE PROPERTIES>Examples>loc, loch, locv, width, height, rotation, member,
membernum, color, blend, etc.
Examples:
sprite(2).loc=point(0,0) –(sprite in channel 2 located at top left of
stage)
sprite(2).blend=30 --(sprite in channel 2 at 30% opacity)
SPECIAL QUICKTIME PROPERTIES:
sprite(1).movierate=-1 --plays QT backward
sprite(1).movierate=1 -- plays QT at normal rate 30 fps
sprite(1).movierate=1+.01 --increases the speed of QT playback by a fp number
sprite(1).movierate=2 -- plays QT 2x normal speed
COMMANDS
go next --go to the next marker AND go previous --go to the previous marker
go to the frame –loop playback head in same frame
alert “you are an idiot” --puts alert box with text on screen
puppetSound “firegun” –play sound in internal cast called
firegun
CONDITIONALS>Basic structure
if –something is true—then
DO SOMETHING—execute lingo command
end if
Example:
If sprite(2).blend > 90 then
sprite(2).blend=0
end if
VARIABLES: LOCAL VS. GLOBAL
A “placeholder” that holds a numeric or string value. Example: x=4
If you want a variable to be in memory for the duration of the movie it has
to be a global variable.
Example:
Global gxchange
gxchange=0
Advanced topics to be covered later: LISTS/ARRAY and REPEAT LOOPS