Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / multiplayer problems

Author
Message
rudie dudie
20
Years of Service
User Offline
Joined: 5th Mar 2004
Location: uk,blighty,middle earth, you choose
Posted: 5th Mar 2004 17:37
help ive got a multiplayer game which connects fine, although when it comes to moving the 2D sprites on the screen they are not updated on the other players pc, any suggestions on how i could use memblocks to change the position of one sprite on the other players computer.

thanks for your help
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 5th Mar 2004 19:49
The flow of logic is fairly straight forward.

1. You move your sprite.
2. You send a message to the other machines that your sprite has moved.
3. The other players look for your message and when they get it they update the sprite on their machine that matches yours.

The message can be a string or a memblock. A memblock has the advantage of gaurenteed delivery, if selected. The downside is that they are harder to write than strings.
--
TAZ

Login to post a reply

Server time is: 2024-09-22 00:27:16
Your offset time is: 2024-09-22 00:27:16