Hello fellow weekend slaves--
I'm starting a new project which I *think* is pretty straightforward, but
I'd like a sanity check from the gurus :-)
I'm going to have one main sprite floating around the screen, bouncing off
the sides. That shouldn't be too hard, though if somebody could point me at
an article or some existing code, you could save me a couple days :-)
There will be several other sprites floating on the screen, kind of
following the main sprite--when the main sprite approaches, they will grow
bigger, brighter, and start moving in the main sprite's direction.
Now, the sanity check. I'm planning to write (or crib) one behavior to
attach to my main sprite to control its movement and, once a frame,
broadcast its location and direction to all the other sprites.
The other reactive sprites will all have a behavior attached that will
react to the main sprite's broadcast, and control their own movement, size,
etc.
Reasonable, rational? Is this the way you would approach it? Should I set
the frame rate up (say, 30 fps) and do the movement on stepFrame, or would
it be more efficient to set the frame rate way down to 1 fps and use a
timeout object? We're using a high-end machine in a controlled environment,
but I need the animation to be really, really smooth, and there are a lot
of sprites--about 80, I think.
Any comments appreciated.
Cordially,
Kerry Thompson
Learning Network
[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!]