Hello all....I just joined the list, and figured what better way to start
than with a question:)


I am currently developing a small game using Director 8 and Multiuser
server.  Basically, I need the users to be able to move a widget around the
screen using arrow keys.
The move is then sent to the opponent via the MU server.

         Code is as follows:
                    (frameScript)
                   on keyDown me
                     if the keyCode = 126 then
                         sprite(1).locV = (sprite(1).locV - 5)
                         SendMessage( "wm", (the keycode))
                     else if the keyCode = 125 then
                         sprite(1).locV = (sprite(1).locV + 5)
                         SendMessage( "wm", (the keycode))
                     else if the keyCode = 124 then
                         sprite(1).locH = (sprite(1).locH + 5)
                         SendMessage( "wm", (the keycode))
                     else if the keyCode = 123 then
                         sprite(1).locH = (sprite(1).locH - 5)
                         SendMessage( "wm", (the keycode))
                     end if
                   end


However, this is causing a slight problem.  Since the user is able to hold
down the key to move his/her widget around the screen continuously, I am
noticing lag on
their opponents screen.  The lag usually appears after a few seconds, and
then persists
until the movement has been completed.  Obviously, there is some sort of
buffering of input
taking place on the recieve side.  Is there any way around this, or has
anyone dealt with this type of thing before?

~matt desimone
[EMAIL PROTECTED]


[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