Creating a live chat O_O
Moderator: General Moderators
-
Mythic Fr0st
- Forum Contributor
- Posts: 137
- Joined: Sat Dec 02, 2006 3:23 am
- Contact:
Creating a live chat O_O
I want to add a live chat box to my game...
I need to know what languages to use, and basically, HOW to do it lol
I need to know what languages to use, and basically, HOW to do it lol
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- evilchris2003
- Forum Contributor
- Posts: 106
- Joined: Sun Nov 12, 2006 6:43 am
- Location: Derby, UK
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Well, PHP can do it if you relay *everything* via the server.evilchris2003 wrote:Java has built in connectivity functions ideal for this sort of thing
With Java however you can just "track" the client IP addresses with the server and the have applets connect directly to the remote peer. The AJAX approach in PHP has been proven to work well though and will work with more browsers since Java is often disabled on the client.
-
Mythic Fr0st
- Forum Contributor
- Posts: 137
- Joined: Sat Dec 02, 2006 3:23 am
- Contact:
hmm
Well, What is going to be the most stable & effective?
(I would guess java, but can you use java with php & html?)
(I would guess java, but can you use java with php & html?)
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
I think they are referring to JavaScript when they say Java. JavaScript will be interpreted on the client side, and will interact with PHP/MySQL by way of the XMLHttpRequest object. While using Javascript is probably the most seamless, my suggestion would be compatible with any client (as it doesn't depend on JS, and JS can be disabled by the client). If your game is already using JS, you may as well go with AJAX.
-
Mythic Fr0st
- Forum Contributor
- Posts: 137
- Joined: Sat Dec 02, 2006 3:23 am
- Contact:
ah
I'll check out ajax, although it sounds like a cleaning product:P
I already have a little JS & css, but mostly html & php
Im glad its JS and not java, cus the program I downloaded for it, wont start lolz
Thanks alot guys
now I just gotta figure out how to do it lolz, starting with making the box for the chat o_O
Q1: how do I make the box for the chat, like a black box, where you can type over... if you look at a game like
http://www.shimlar.com and many others, they have sort of a text area, thats my first goal o_O
I already have a little JS & css, but mostly html & php
Im glad its JS and not java, cus the program I downloaded for it, wont start lolz
Thanks alot guys
now I just gotta figure out how to do it lolz, starting with making the box for the chat o_O
Q1: how do I make the box for the chat, like a black box, where you can type over... if you look at a game like
http://www.shimlar.com and many others, they have sort of a text area, thats my first goal o_O