Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,103 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2 players #141393
07/16/07 12:27
07/16/07 12:27
Joined: Apr 2007
Posts: 83
prog Offline OP
Junior Member
prog  Offline OP
Junior Member

Joined: Apr 2007
Posts: 83
i want 2 players to have the walk action, i want to control one with arrows and the other with WSAD keys.
And also if i create enties with ent_create(), then only the first selected player is visible but not both.
I want both the players to be visible on screen...

Re: 2 players [Re: prog] #141394
07/19/07 22:21
07/19/07 22:21
Joined: Dec 2005
Posts: 252
MyOwnKingdom
nipx Offline
Member
nipx  Offline
Member

Joined: Dec 2005
Posts: 252
MyOwnKingdom
do you not use A6.22 and do you have at least the com edition?

if so, check locoweeds MP tutorial


nipx

Re: 2 players [Re: prog] #141395
07/20/07 07:09
07/20/07 07:09
Joined: May 2003
Posts: 567
Spain, Canary Islands
Felixsg Offline
User
Felixsg  Offline
User

Joined: May 2003
Posts: 567
Spain, Canary Islands
You can't make that the keyboard can use more or four keys at the same time, is a better option to use keyboard and mouse or joystick

If you prees more of 4 keys then the control not respond

Re: 2 players [Re: Felixsg] #141396
07/20/07 12:10
07/20/07 12:10
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
Maby you move both players at the same time, at the same position

You defenitely need to put more information, to get any specific help for your problem

Re: 2 players [Re: Damocles] #141397
07/23/07 06:24
07/23/07 06:24
Joined: Apr 2007
Posts: 83
prog Offline OP
Junior Member
prog  Offline OP
Junior Member

Joined: Apr 2007
Posts: 83
I have 2 characters in my game,
And I want my main player to be controlled with arrows
and the second player(movement) with some other keys(WSAD).

Re: 2 players [Re: prog] #141398
07/23/07 09:08
07/23/07 09:08
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
The most important question, as you never stated it:

is this a multiplayer setup?

And if it is:

You have to create both players on the server.

Then you have to assign actions on the server (one for each player), that
have for example a while(1) {....}
loop, that can react on key-inputs, and thus move the player it is assigned to.

To controll the player from the client, you have to send movecommands to the server

use send_var(); on the client.

for example:

var player1_forward; //variable

...

if(key_w){player1_forward=1;send_var(player1_forward);}

...

in the action (run on the server):

if(player1_forward){ent_move ..... player1 ... ; player1_forward=0;}


Post your code, if you have no Idea what is wrong with it.

Also try not to get into multiplayer, if you have not enough practise
with singleplayer code.

Re: 2 players [Re: Damocles] #141399
07/23/07 15:53
07/23/07 15:53
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
@ Damocles:
I think he wants to make a split-screen game!
(that why he wants to use wasd and the arrows


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com

Moderated by  HeelX, Spirit 

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