Morgan Bonar <[EMAIL PROTECTED]> wrote:

> Anyone know how to (or if its possible) to share properties between multiple
> behaviors on the same sprite?

Hi Morgan,

You can find an article called "Inter-sprite communications" at:

>>     http://www.director-online.com/accessArticle2.cfm?id=335

I've also written behaviors that check for the existence of an instance of
the same script on lower-numbered sprites.  When such an instance is found,
the instance on the current sprite gives up its place on the current
sprite's scriptInstanceList to the existing instance.  The result is that
you can have several sprites all sharing the same behavior instance, so all
the properties are common to all the sprites concerned (except for
spriteNum).

Cheers,

James


[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