Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Testing Multiplayer #11300
12/19/02 02:11
12/19/02 02:11
Joined: Jun 2002
Posts: 63
Brazil
RedFox Offline OP
Junior Member
RedFox  Offline OP
Junior Member

Joined: Jun 2002
Posts: 63
Brazil
Hi all,

I´ve just start to use the multiplayer in Gamestudio and i´m having some probs.

My entites move when i click them with the mouse. In my game the server can walk without problems...but in the client either not recognize the entites .. if i click on then they have no answer.

My Action
quote:


action unit1_action
{
my.enable_click = on;
my.enable_entity = on;
my.enable_touch = on;
my.event = move_unit;
my.enable_scan = on;
my.pan = 270;
}

My Move_Unit (works in the server)
quote:

function move_unit()
{
exclusive_global;
var go_pos.x;
var go_pos.y;

if (event_type == event_touch)
{
.
.
.
}

What i have to do for the client identify that i click on a entity????

Tks


Giuliano B. Schiavon ====================
Re: Testing Multiplayer #11301
12/19/02 07:32
12/19/02 07:32

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Your code works ok for single player games. When you click one of the entities on the client, you have to set a var to a certain value; send that var to the server and it (the server) will move the unit on the client.

Re: Testing Multiplayer #11302
12/20/02 00:44
12/20/02 00:44
Joined: Jun 2002
Posts: 63
Brazil
RedFox Offline OP
Junior Member
RedFox  Offline OP
Junior Member

Joined: Jun 2002
Posts: 63
Brazil
Hi,

I create a entity in the server, and i want to move the entity in the client. So what i want is in the Client: click in the entity (with the mouse)and move to another position (when i click the mouse again, to my new position).

How can i identify with the mouse that i click in a entity create in the server????

tks.


Giuliano B. Schiavon ====================
Re: Testing Multiplayer #11303
12/20/02 07:34
12/20/02 07:34

A
Anonymous
Unregistered
Anonymous
Unregistered
A



The entities on the client(s) should respond to event_click; when this happens, send a var to the server.


Moderated by  HeelX, Spirit 

Gamestudio download | 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