Yes Chris, you can attach behaviors dynamically. Use the scriptInstanceList
command. But watch out for behaviors that use a GPDL box to init various
properties. Those properties remain void until you explicitly specify them
to be something. And the beginSprite event is not fired either.

Works something like this.
sprite(1).scriptInstanceList.add(script ("New behavior").new())

Regards,
Pranav

<snip>
  this might be an old question, but is it possible to dynamically attach
behaviours to sprites. I am working on dynamically generating sprites in
successive score channels, and have got that far, but need to attach
behaviours to them as I go
<snip>




[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