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?
Handling chat in a browser game
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Handling chat in a browser game
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.

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.
The indelible lord of tl;dr
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Handling chat in a browser game
yep i used a free ajax chat script for Forsaken sanctum. Worked very well.
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Handling chat in a browser game
This is the one we use on MMORPGMaker.com.
The indelible lord of tl;dr
Re: Handling chat in a browser game
Thanks!
So using one of those programs I could restrict chat to various groups (current location, guild, etc.)?
So using one of those programs I could restrict chat to various groups (current location, guild, etc.)?
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Handling chat in a browser game
As far as I know you could. You would just set up multiple instances of the chat application.
The indelible lord of tl;dr
Re: Handling chat in a browser game
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 

Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8