Gamestudio Links
Zorro Links
Newest Posts
Performance report in trade mode
by jcl. 01/18/20 09:25
oldschool fps project
by 3run. 01/14/20 19:15
Question about Clipping
by Dooley. 01/13/20 04:16
Simple backtest for SPX intra weeklies
by interzonez. 01/13/20 03:42
Trojan Agent
by jcl. 01/12/20 08:36
Multiplayer c-script example
by Truth. 01/10/20 19:45
Virtual hedging @OANDA
by jcl. 01/10/20 12:53
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
1 registered members (AndrewAMD), 1,234 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alterpips, Leohermoso, matchristrading, pablomfz, tenrally
18358 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Multiplayer c-script example #478904
01/09/20 20:23
01/09/20 20:23
Joined: Jun 2008
Posts: 132
London
T
Truth Offline OP
Member
Truth  Offline OP
Member
T

Joined: Jun 2008
Posts: 132
London
Hello,

Can anyone point me in the direction of a multiplayer C-SCRIPT example, I'm trying to make a large multiplayer game 16/32 players but can't seem to get it to work

For example when one person joins the server it's fine, but when the second person joins they start controlling both players and the camera target changes to the second player on both machines


Any help will be greatly appreciated


Hopefully someone can make sense of my code Multiplayer CODE

Re: Multiplayer c-script example [Re: Truth] #478905
01/10/20 03:08
01/10/20 03:08
Joined: May 2005
Posts: 721
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 721
Chicago, IL
Check the Acknex User Magazine issues. There is a link to it here on this forum, on the left side usually. Then search for Multiplayer...

Re: Multiplayer c-script example [Re: Truth] #478910
01/10/20 19:45
01/10/20 19:45
Joined: Jun 2008
Posts: 132
London
T
Truth Offline OP
Member
Truth  Offline OP
Member
T

Joined: Jun 2008
Posts: 132
London
Thanks for your response I figured it out by moving the camera and key inputs to separate functions and using the proc_client command, camera and controls move independently on client machines now laugh

//Player 1
proc_client(me, MP1_CAM); //camera
proc_client(me, MP1_KEY); //keyboard controls

//Player 2
proc_client(me, MP2_CAM); //camera
proc_client(me, MP2_KEY); //keyboard controls


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1