Advertisement Jump to content


This topic is now archived and is closed to further replies.


Collision detection in multiplayer games

This topic is 6780 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey. I''m creating a game with a group of friends. IT''s a simple 2D 640x480x16b mode game, and we''re trying to make it multiplayer using DPlay. Up until now we got DPlay to connect and both players show up and can fire bullets and move, it works fine. But I have a question about collision. Let''s say on my screen I fire a bullet at an enemy and it hits, but on the other screen because of lag or whatever other reason that could cause it the bullet I shot appears to have missed the enemy. How do would I have it set up so that situation doesn''t arise, and/or if it does are there any tricks I''m unaware about? btw, this is my first time using DPlay and it''s going better than I thought it would. I recommend "Inside DirectX" for anyone programming with DX, it''s really informative. Thanks

Share this post

Link to post
Share on other sites
Can you say "client-server" Set one machine up as the server that dictates when a collision takes place and passes it back to the client. Let the server pass messages to the client to keep the game in sync.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!