ChatterBox

Blitz3D Forums/Blitz3D Beginners Area/ChatterBox

Yo! Wazzup?(Posted 2007) [#1]
I've decided to work on a small project but I'm new at programming and don't know exactly how.

I want this to be a small chatroom for 2 people and it might look like this to the user.



Global theirmessage$="Okay."
.start
message$=Input("")
Print "You: " + message
Delay 2000
Print "Other Person: " + theirmessage
Goto start


(message$ = "Let's Play!")


I would not like the line: Global theirmessage$="Okay.",
instead I would like it to be a message that the other person sent.


If you have questions or have some code I could use, please reply.


Also, I posted this in the Blitz+ section before [here], but someone told me to post here.


CS_TBL(Posted 2007) [#2]
ey ppz, no nagging about non-3d'ness eh .. :P


Blitz123(Posted 2007) [#3]
What you want is some network code. Very difficult for beginers, I'm afraid.Basicly, you would use the DirectPlay functions in B3d to Conect to the other perdon, and then exchange messages, acknolagements ect.
However, this isn't quite what Blitz was designed for, so I would advise you to try somthing simpler first.


Yo! Wazzup?(Posted 2007) [#4]
did you click on the [here] link?


Blitz123(Posted 2007) [#5]
Er.. No. Good point. I like his style.


Blitz123(Posted 2007) [#6]
No, I'm talking to you arent I.
Argh!
Nice age to start programming though.By 18 you'll know enough to skip university and go staight into a job :-8


Yo! Wazzup?(Posted 2007) [#7]
*snorts*


Blitz123(Posted 2007) [#8]
Exactley.


b32(Posted 2007) [#9]
Maybe you could use StartNetGame() ? It allows you to open a netgame. You need to enter an IP adres. If you run the program twice on the same PC, you don't need to fill it in. Messages can be sent with the SendNetMsg command: