Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 668 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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: 146
London
T
Truth Offline OP
Member
Truth  Offline OP
Member
T

Joined: Jun 2008
Posts: 146
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: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
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: 146
London
T
Truth Offline OP
Member
Truth  Offline OP
Member
T

Joined: Jun 2008
Posts: 146
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