yep this is how it is, Im making a online game for 2 players in tgf and Im using dplay but now Im having a problem with making a chat, 2 problem acctually. The chat window jumps around when u walk as a player (the chat window is set as always postion near the player and the player is set as window scrolling) and the biggest prob is that you can't see your own text only the other players text, and same with him, he cant see his text only the hosts.
So now Im asking for help, I can either send u it and u can look at the code and fix it or u can try to help me here if u want to
msn: patricka25@hotmail.com
Thx
Edited by the Author.
Edited by the Author.
n/a
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
5th April, 2006 at 09:45:01 -
Whenever you type a message to the other player, just change your player's speech bubble or add a line t o the chatlog (I'm not sure how your chat works) of what you just typed, then send it to the other players, and also clear the text.
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
6th April, 2006 at 10:13:29 -
Okay, probably the most likely explanation is that you are clearing the text you send to the other person BEFORE you add it to the list. Make sure that your events go like this:
On pressing enter:
+Send text to other player
+Add a line to history
+Clear text
Make sure the clear text is the last action in the event, otherwise it will clear your text, and add a blank message which is what I think is happening.