|
Post by tharindu on Feb 6, 2018 7:50:35 GMT
Hi, Since I don't really have much time to continue working steadily on the multiplayer as I am busy with the RPG pack and other stuff like making my own game for a change, I will share with you guys what I have done so far :D. Sorry I don't have a tutorial or proper documentation in the scripts or anything for you at the moment. I will put them together when I can. Until then, enjoy the package in the url below. It's a modified version of the free invector template that carries with it a fully working multiplayer component. From this package you can get an idea on 01. How I instantiate the camera and the player separately on the network. 02. How I establish the player/camera relationship when several players are present in the scene. 03. How I execute portions of code that only need to be done by the client player. 04. How the PhotonView component is setup in the prefabs and how the transform view and animator view from photon are used to keep things in sync between players etc. Pay attention to how I don't use don't destroy on load. Thinking of how I figure a way around this for the melee/shooter controller. Please be sure to setup your photon account and use your own AppId in the Photon Settings file. You can find how to do this in enough youtube videos drive.google.com/open?id=100_u1qy8W1UZXkKIGTjVUBpg9S4sIkmrNote that this is a free project. So feel free to contribute to the cause and improve it. For instance this is very incomplete and doesn't even show player names Regards, Tharindu
|
|
|
Post by Frosted Brain on Feb 6, 2018 16:29:39 GMT
Thanks for the share! After trying to add the package to INV shooter I get a host of errors (Unity 2017.1.1f1) imgur.com/wSaW5ER
|
|
|
Post by tharindu on Feb 6, 2018 17:13:23 GMT
Thanks for the share! After trying to add the package to INV shooter I get a host of errors (Unity 2017.1.1f1) imgur.com/wSaW5ERIt's supposed to only work with the free invector version. nothing else you will need to adopt the concepts from the example and apply to shooter and melee controller.
|
|
|
Post by muggedketchup on Sept 14, 2022 22:37:45 GMT
Can't find the package anymore.
|
|