Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

How do I create 1 host and 3 clients, instead of 4 clients/hosts

$
0
0
Hello,
I am currently creating a game using photon Networking, and I am having a problem with defining a host. Basically I spawn some cubes right now, that are spawned locally on every user's program, and each user's computer does their own calculations for the cube's movement, I want to only create these cubes on one of the client's computer, and then send any death state or movement information to the other clients, so everything is synced to the "host". But so far I have not been able to find a way to do that.

This is an image of the code I currently use to try defining a "host".


This is an image of the code I use to transfer the data to the objects PhotonVeiw in other clients.


Any feedback is appreciated :smile:

Viewing all articles
Browse latest Browse all 1557

Trending Articles