Jump to content
  • Advertisement

Archived

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

ByteMe95

Collision detection in multiplayer games

This topic is 6684 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
Advertisement
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.

-BacksideSnap-

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!