|
|
Sprite generation
Added on 4/3/2001
|
Compatibilities:
|
Rating: 
|
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
|
|