Multiplayer
Before I begin this post, I would like to apologize for how long it has been since my last posting. I have been busy as a bee working on many projects, and I have many things to blurt out! For those of you who still check my blog, thanks for keeping hope…
A while ago, I tried for the first time, multiplayer gaming. Things were ok, untill…. DUH DUH DUH!!!!! The Unfixable Bug
I found that all players controlled each other! :/ I tried, and tried, and tried, not knowing what I was doing. I eventually gave up – or did I?
Over the months, my brain was assimilating data, and comprehending what multiplayer really was, and how it worked. Almost before I gave up, I did a little bit of reading on the subject… I had spent two months semi-consciously thinking, and understanding multiplayer. The more I thought about it, the more I knew that my last idea would fail. In fact I was so sure I never even tried it – to this day! Eventually I asked…. DUH DUH DUH!!!!! The Unity…community!
After that, in about three days, I got my brilliant, well cooked, and delicious answer…..
I was thinking in terms of make a script ignore other player’s input! However, since all scripts are un-synched across the network without a network view, one can actually view it in terms of this: make all other scripts ignore me! (scripts turn them self off on the clients computer if they were not actually spawned by the clients computer – this is un-synched, so on your screen the other players script is turning off. But on their screen YOUR script is turning off!).
I was absolutely exited about this, and thought the reversed logic was GENIUS! In a way, I still do lol.
Anywho, ever since, I have not had that problem – though I once thought I did – it turned out that my player was not being controlled by someone else – but instead, I was seeing someone else’s camera LOL.
~ Geo
Dadster:
I know you have been thinking about this problem a long, long time so congrats on figuring it out! Can’t wait to see what you do next!
Geo:
Thanks!
You would know, considering you lived through the abundant Grrs, GAHs, and rambles (A.K.A tiny-tantrums) related to the subject…