2 Person multiplayer (Help: Camera issue)
Options
Hey
I've been struggling to create a simple 1 vs 1 game. I've managed to do get both player join the same room and launch the scene. After that I've also managed to spawn 2 players each on their side. The part that bugs me is setting up the camera for each player so they can see from their own camera.
The player prefab has a camera included
So far in the code part i used the PhotonView.isMine to check which one i own and then i checked if PhotonView.isMine isn't mine then disable the camera. But that didn't seem to do what i want it to do.
Can anyone point me in the right direction?
Any help is really appreciated!
I've been struggling to create a simple 1 vs 1 game. I've managed to do get both player join the same room and launch the scene. After that I've also managed to spawn 2 players each on their side. The part that bugs me is setting up the camera for each player so they can see from their own camera.
The player prefab has a camera included
So far in the code part i used the PhotonView.isMine to check which one i own and then i checked if PhotonView.isMine isn't mine then disable the camera. But that didn't seem to do what i want it to do.
Can anyone point me in the right direction?
Any help is really appreciated!
0
Comments
-
If anyone gets stuck on this I've managed to solve it by watching this tutorial which is in my opinion the best for any newb out there https://youtube.com/watch?v=AIgwZK151-A&list=PLbghT7MmckI7BDIGqNl_TgizCpJiXy0n90