Multiplayer sync position problem

Bugs will be moved here once resolved.

Post » Sun Jun 21, 2015 2:21 pm

Problem Description
(Sorry for my english) I try to make a game where the movement and collision are client sided (The client send his X and Y to the host and the other peer) but When a peer join I have a error ... i'm not sure if I understand the "PeerState" :?

Attach a Capx
http:///sirvoid.vv.si/clientsidedmovement.capx

Description of Capx
Just a simple multiplayer platformer maked whit the example.

Steps to Reproduce Bug
    Open 2 tab one for host and one for a peer. and when the peer will join you have the error.

Observed Result
I have a strange error.

Expected Result
All of the player send his X and Y to other.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Window 8.1

Construct 2 Version ID
r201
My Twitter:

@Sirvoidd

My Tutorial:

Multiplayer with Photon
B
32
S
12
G
9
Posts: 73
Reputation: 7,079

Post » Mon Jun 22, 2015 10:04 am

This is not a bug, but how you implemented the multiplayer concept.

First problem: for the synching, you should add the client input tags, "xpeer" and "ypeer" on event 8 in the game event sheet. (like lookx looky and input tag)

Adding those will fix the host movement on host and peer.


As for peer movement, there is no peer control structure implemented.

Simply copy the control pieces from the host group to the peer group. (event 29 in host group) (or move event 29 to the common group)

And voila ... it will work. (just tested here)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Mon Jun 22, 2015 3:17 pm

Omg i have just forget this >< ... thanks you very much ^^''
My Twitter:

@Sirvoidd

My Tutorial:

Multiplayer with Photon
B
32
S
12
G
9
Posts: 73
Reputation: 7,079

Post » Wed Jul 01, 2015 2:31 pm

Closing as not a bug.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests