iDevGames Forums
Online mode in fighting games - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Online mode in fighting games (/thread-11686.html)



Online mode in fighting games - Timorite - Apr 27, 2015 07:03 AM

Hello. Smile

I've programmed a 2D fighting game with an online mode, using peer to peer connection. But players complain that the host has a huge advantage over the client when it lags. So I was wondering what was actually the best solution. Should I simply add a delay on inputs for the host, proptionnal to the ping, or make the game slow down proportionally to the ping? What do you think works best in the fighting games where the online mode suits you?

For my part I don't like when the hit is delayed, I prefer when the games slows down and everything stays synchronous, but I'd still like to hear the views of other programmers. The best is probably to do both : using a delay for the host, and if the ping is lower than a certain value, the game slows down.

What do you think?


RE: Online mode in fighting games - manaraaa - Jun 10, 2015 01:02 AM

http://www.kfs.edu.eg