Chris,

I'm assuming you mean to generate sprites at runtime that don't already
exist in the score and assign a castmember to them. You can generate sprites
at runtime using the beginRecord event. Here is the listing from the on-line
help in Director:

on animBall numberOfFrames
        beginRecording
                horizontal = 0
                vertical = 100
                repeat with i = 1 to numberOfFrames
                        go to frame i
                        sprite(20).member = member "Ball"
                        sprite(20).locH = horizontal
                        sprite(20).locV = vertical
                        sprite(20).type = 1
                        sprite(20).foreColor = 255
                        horizontal = horizontal + 3
                        vertical = vertical + 2
                        updateFrame
                end repeat
        endRecording

end

Look in the Lingo help file under the letter "b". It will tell you the rest
of the commands that go with this and how to assign behaviors, etc. to your
new sprites.

Timothy R. Symons
Multimedia Programming Specialist
Curtis, Inc.


> -----Original Message-----
> From: Chris A. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 2:32 AM
> To: lingo-l
> Subject: <lingo-l> dynamic content
> 
> 
> Hi,
> 
> Short question :
> I would like to know if it's possible to create sprites from a given
> castmember
> during runtime, and how.
> 
> Thanks a lot.
> 
> Chris A.
> Dept.Webdesign - Multimedia
> Creatief - Full Service N.V.
> Brugsestraat 140
> 8531 Harelbeke (Hulste)
> Belgium
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> www.creatief.be
> Tel: +32 56/65.04.23
> Fax: +32 56/71.78.51
> 
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]
> 

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to