Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Rotate Image Algorithm - Imaging Lingo
merge sorting including accent marked strings
Shadow Maker
Narration Tool
Generic behavior to get Key State.
DragNDrop Behaviour
Flash Sprite -- Simple Controller [Play, Pause, Rewind]
Replace tabs with spaces
Digital Clock Puzzle
DirectImage Xtra
 

 

 

FAQ Sprite generation

Added on 4/3/2001

 

Compatibilities:

Rating:

Author: BrentMoseley

How do I generate sprites on the fly?

Use the puppetsprite command to gain complete control over a sprite channel with Lingo. You can then add behaviors to the sprite with the scriptinstancelist property. So a script to setup sprites would look something like this:

on makesprite sNum, mName, sLoc
puppetsprite sNum, true --puppet the sprite
add sprite(sNum).scriptinstancelist, new(script "myBehavior") --add behavior
sprite(sNum).member = mName --set member
sprite(sNum).ink = 36 --set background transparent ink
sprite(sNum).loc = sloc --place sprite
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail