At 11:56 PM +0000 1/25/01, Nigel wrote:
>Hi all
>I have just started programming in Lingo. I am having trouble managing my
>project since this is not Java or C++ and I can't organise my code "nicely"
>into well defined autonomous objects (I tried using parent scripts, and then
>treating each sprite as an object but these ideas were inelegant). Can anybody
>point me to some place where they have tips on managing and organizing a
>director program, and in particular the lingo scripts. The place where I am at
>has  non-programmers, so I am pretty much on my own here.
>
>The director movie that I am writing is for a CD-ROM, with video, interactive
>games, text picture etc. I am using Lingo for just about everything, and find
>that I hate opening the script window because of the big mess waiting for me
>when I open it.
>


Nigel,

You definitely want to split up your scripts into multiple script 
cast members. It takes a while to understand what makes a logical 
split.  But the main idea is that code that affects things on the 
screen should be placed in behavior scripts (also called) sprite 
scripts.  Behaviors are really scripts that create objects which can 
be attached to multiple sprites.  For example, you can attach the 
same behavior to sprite 1, 2, 3, etc.  and Director will create 
multiple instances or the behavior script, each with its own set of 
properties.

Code that affects the overall movie (or movie level utilities) should 
be placed in movie script(s).  And then if you are familiar with OOP, 
create parent scripts for things are overall controllers or managers 
or for any component that doesn't directly control something on the 
screen.

Let us know if you have more specific questions.

Irv
-- 
Lingo / Director / Shockwave development for all occasions.

        (Over two millions lines of Lingo code served!)

[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