Page 1 of 1

Handling chat in a browser game

Posted: Thu Jan 14, 2010 6:46 pm
by OldRod
My game is to the point where I have players in and moving around to various locations.

Now I'm wanting to add chat functionality. I'm not sure how to go about doing it.

I haven't started coding this yet, as I'm still trying to get it straight in my head. So far the only methods I've come up with require the player to refresh their browser to be able to see the chat of other people. Is there a way for PlayerA to say something and it gets 'pushed' onto PlayerB's browser so he sees it without refreshing?

Re: Handling chat in a browser game

Posted: Thu Jan 14, 2010 6:48 pm
by Jackolantern
AJAX :)

There are plenty of AJAX chat solutions out there that can be added directly into your game. You can follow the links present in the chat box on MMORPGMaker to get one, or just Google it.

Re: Handling chat in a browser game

Posted: Thu Jan 14, 2010 7:55 pm
by hallsofvallhalla
yep i used a free ajax chat script for Forsaken sanctum. Worked very well.

Re: Handling chat in a browser game

Posted: Thu Jan 14, 2010 7:59 pm
by Jackolantern
This is the one we use on MMORPGMaker.com.

Re: Handling chat in a browser game

Posted: Thu Jan 14, 2010 8:35 pm
by OldRod
Thanks!

So using one of those programs I could restrict chat to various groups (current location, guild, etc.)?

Re: Handling chat in a browser game

Posted: Thu Jan 14, 2010 11:34 pm
by Jackolantern
As far as I know you could. You would just set up multiple instances of the chat application.

Re: Handling chat in a browser game

Posted: Fri Jan 15, 2010 12:49 am
by ZeroComp
I'm gonna try making my own script with a bit of AJAX just getting my feet wet with it so It should take a while :)