Jump to content
  • Advertisement
Sign in to follow this  
gamacreata

messages in online fps

This topic is 4842 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

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!