You don't need frames to view this website. Flash communication server. Flash mx xml socket server.
Home
Main Menu
Home
- - - - - - -
What is Palabre ?
Features
News
FAQ
Forum
DEMO
- - - - - - -
Downloads !
Browse SVN
- - - - - - -
Search
Contact Us
- - - - - - -
Sourceforge Project Page
Python
Links




 
Download Palabre Flash Xml Socket Server DOWNLOAD Download Palabre Flash Xml Socket Server FORUM Download Palabre Flash Xml Socket Server FAQ Download Palabre Flash Xml Socket Server WHAT IS IT
 



Using Palabre ? Coming here for Support ? Please consider making an (even small) donation :)
Palabre Forum  


Post a new message in "Default Forum"
Name:
Subject:
topic icon:
no
boardcode:
 Colour:  Size:   Close all tags
Message:
CAPTCHA: How much is 4 added to 2

Topic History of: Synchronisation Players position
Max. showing the last posts - (Last post first)
Author Message
admin Great :)



Feel free to post a link to a working version, or samples of code to help other users :)



have fun,
gobotom Ok admin !



My movement is latteral. And it works ! I send the position 10x/sec and between, it's a interpolation...



Thanks !
admin Hi



It depends on what kind of movement it is (boat movement with a lot of easing, or someone walking very sharpy )





If you want to send only position, I suggest not to send more than 10 positions per second, and to do some sort of interpolation/easing between positions.



One other way to do is to send the position with a speed and a direction.

And you only send positions when speed or direction change.

So that on the other side you can adjust positions and move players in the same way you move your local player.



---



Ca dépend du type de mouvement souhaité (Ex : un bateau aura un mouvement très ample et quelqu'un qui marche un mouvement beaucoup plus anguleux)



Si vous envoyez uniquement la position, je suggère pas plus de 10 envois par seconde, et une interpolation entre les deux positions.



Sinon vous pouvez envoyer la position couplée à une vitesse et une direction.

Et vous ne renvoyez l'information que si la vitesse ou la direction change (mais cet envoi est toujours couplé à une position afin de réajuster au cas où)

Ca permet notamment de réutiliser les fonctions de déplacement utilisées pour le joueur local.





J'espère avoir été clair :)
gobotom oups, sorry ! Translate "façon" by "way" ....



The same in french :



Salut,



Je développe donc un petit jeu multijoueurs qui avance petit à petit.



Pour synchroniser les positions des joueurs dans la scène, j'ai d'abord envoyé à chaque image (OnEnterFrame) ma position au joueur adverse.

Après les test, je constatais du lag.

J'ai donc réduis le nombre d'envois (1/2) et cela fonctionne déjà mieux.



Ceci dit, je me demandais quelles étaient les meilleures façon d'envoyer ma position à l'adversaire...



Merci d'avance.
gobotom well, i try in english....



My dev come better...



I'm on a game dev and i want to know what is the best façon to sync the players positions.



My range fps is 72.



So, if a send my position frame by frame, it's laggy...



I have try 1 frame / 2 and it work finer...



But i want to know wich solution are better... Can i do better ?



Sorry for the english...