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.

DarkBASIC Discussion / multiplayer help

Author
Message
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 29th Feb 2004 15:34
can someone explain to me how to make the below code work over the internet? i haven't done ANYTHING with multiplayer yet.
you don't need to do it for me.(it would be nice though )
i just need someone to explain it to me and maybe give me some snippets.
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 29th Feb 2004 15:42 Edited at: 29th Feb 2004 15:51
code without need of media (i fixed it so you don't need a gun model)

even if you could make a simple chatroom ripoff, it would help me a lot.
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 29th Feb 2004 20:16
We're working on an FPS as well, but haven't even touched the realm of multiplayer programming, so I can't help you there. Try searching the forums for "multiplayer", or there should be some examples that came with DB.

Crazy Donut Productions
Current Project: KillZone
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 29th Feb 2004 21:03
hmm... do you think you can code it to sidestep with <- and -> for me, i put my current code below. (still no media)
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 1st Mar 2004 07:41
No problemo. Put it in right after your normal walking code. You can implement this method for forward/backward motion as well, much more accurate.
What newxvalue() and newzvalue() do is provide an easy way to calculate:

x=r * sin(theta)
z=r * cos(theta)

'Theta' being the angle the object's pointed at.

Good luck,
Crazy Donuts

Crazy Donut Productions
Current Project: KillZone

Login to post a reply

Server time is: 2025-05-22 16:17:26
Your offset time is: 2025-05-22 16:17:26