by Rux » Wed Jun 17, 2009 7:22 pm
You've inspired me to create a simple chat program, that you can chat with people over the network.
I wonder if the following plan could work...
First of all, you could create rooms, and just name them whatever you want. It will save a file.
or you could join a room, by typing whatever the created room was.
Then on the next screen, there would be two choices, to be the red talker, or to be the blue talker.
The buttons will constantly load the saved file every second (or less) and check to see if a var is 0 or 1. If its one then the button will turn invisible, if 0 it will stay visible. When you click on one, it will save it as 1 then when you leave the chat room, then it will save back to 0. (Of course this will leave lots of bugs like what if two people click it at the same time, but that would be a rare occasion) Once in the room, there will be a the to segments, the blue seg. and the red seg. after each will be the previous sentence you said. On the bottem there would be a chatbox, where you type, and hit a button to say it. It will check if you chose blue or red, (there would be a non saving var that is set when you click on a color) it will save the message to a string. You may not see the message immediately, because I think it would be better to have it read the file every second.
Now to connect each exe, you'd put it on one persons PC then the other would navigate through the network and click on the exe, since GE only saves where the exe is, it will effect the save file.
This was very hard to explain, but would it be possible? I'm going to try it, I just want to know before I start. Im just concerned about it loading and saving so much.
I'm not good at coming up with signatures...