User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Sedning X Y pos with MOO

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sedning X Y pos with MOO

    I am trying to create a MOO game and the movement lags A LOT. When is the best time to send X and Y positions? I have tried:

    Always
    Every 5 miliseconds
    Whenever player is moving

    But it all lags.

    I am using MooClick

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Sedning X Y pos with MOO

    5 milliseconds is too often, as there will end up being a queue of soon out-of-date messages waiting to be sent.
    .:::.Joshtek.:::.

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sedning X Y pos with MOO

    So what, like every second? If I do that won't the player kinda just jump a buncha pixels every second?

  4. #4
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sedning X Y pos with MOO

    If you use 5ms, keep in mind that you should at least work at 200fps...
    As Joshtek said, this is far too often. I remember i had a rather smooth move with moosock, sending 10 informations/sec, with a quite basic dead reckoning.

    EDIT : We cross-posted. Your character won't jump if you send your speed and direction too. This way you can correct the movement every 10/100 or so, put the object in the right position and in the good direction.

  5. #5
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sedning X Y pos with MOO

    may i say that our Fantasaar engine sends every 0.03 sec with no lag? Im working on a new engine thats even better. it is possible but the technology is quite "advanced" if i may say. a.t.m. i can't really share the code because of its value. but i hope this encouriges you that there IS a way.

    EDIT:
    i run at 50fps. and the technique used only works for RPG style like done in Zelda games and Golden Sun, etc... For a platformer this is not going to work.

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sedning X Y pos with MOO

    If that is the case I should probably elliminate the platform feature of the game. But if I may take a second to comment on how impressive your game is. A real MOO masterpiece .

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sedning X Y pos with MOO

    I have a lot of problems. My platform games usually involve 360-degree mouse aiming and firing, and multiplayer usually runs incredibly slow.

  8. #8
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sedning X Y pos with MOO

    You could just send the data when your/a character changes it's direction/speed/angle/blah, this is a basic idea.

  9. #9
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sedning X Y pos with MOO

    the main problem with bullets and particles is to keep it in sync. practicly this is not possible if not all the clients are controlled by the server. so with sush things it is required to build a custom server with MMF2 that tells all the clients where the bullets are going. Also the collisions should be done serverside to prevent de-sync.

  10. #10
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    903
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Sedning X Y pos with MOO

    Every time interval sending is crap and it has no place in good games.

    There is so many "profi" ways -if delta XY changed, new cell in invisible grid...

    With this time crap you will never achieve good synchronization-its not server controlled! When one player with really slow connection (or lossy) can move on his computer the same speed as any other users, its bad system. The best way is to wait for server confirmation (send to whole session) and then proccess the step on all clients. Thats the best, because server send the message to all client at the sime time-also when you have slow connection, only you move slowly.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •