Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Cutting a message

Author
Message
Vixen
19
Years of Service
User Offline
Joined: 6th Apr 2005
Location: Netherlands
Posted: 6th Apr 2005 23:12
I'm trying to implement multiplayer in my game. So far I've got it at the point that I can send and receive messages.

I'm making a pong like game which is playable with a mouse.


The game is a 2 persons game. Now what I think I must do is send a packet with the X-movement of the paddle in a message. Also, for the client the host has to send the position of the ball (correct?) so my message would be:
message$ = "x_paddle,x_ball,z_ball"
(the game is 3d but the ball won't go up and down)
Mulderman
20
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 7th Apr 2005 03:55
try just send key values over network and in second pc just print out those results/values. Then u hopefully will see whats the problem.

http://forum.thegamecreators.com
Vixen
19
Years of Service
User Offline
Joined: 6th Apr 2005
Location: Netherlands
Posted: 7th Apr 2005 19:35
I can't send the message over the network no problem. But how do I get the correct information out of the message? I suppose I should use MID or something.
Vixen
19
Years of Service
User Offline
Joined: 6th Apr 2005
Location: Netherlands
Posted: 8th Apr 2005 01:34
I meant that I "can" send the message. Sorry for the error.

Trying to help where I can [Newbie status ]

Login to post a reply

Server time is: 2024-09-23 17:34:00
Your offset time is: 2024-09-23 17:34:00