messages in online fps

Started by
2 comments, last by gamacreata 18 years, 8 months ago
I am creating a network(directplay) FPS.I was wondering if anyuone knows a tutorial for typing messages and having them able to be displayed on all computers. basicly I have this: an update function for the current frame in current state and : if( user presses "t") {( text message system implementation)...so I was wondering how hard it would be to implement that text system. I also see that a lot of people are using winsock for network. what is the difference between that and directplay. thanks
Advertisement
When the Keyboard() detects the chat/teamchat button down, the Keyboard func changes states from "general input" to "buffer input for chat message". Upon hitting return it reverts to the standard game inputs and transmits the text message.
How are you handling input in general? DirectInput/ASyncKeyState()? Using both ways, it's so easy to detect the state of the chat-key, display a small textbox to type in and then broadcasting the message.

Toolmaker

im using directinput
btw, thanks guys

This topic is closed to new replies.

Advertisement