GTGD S1.5 Our Spawn System - Unity Multiplayer Tutorial

preview_player
Показать описание
Video 5 in the series where we build a multiplayer FPS prototype game from scratch using the free version of the Unity 3.4.0 game development engine.

In this video we will:
Setup a spawn system for our player
Reconfigure our player for multiplayer
Control locking and unlocking the mouse cursor

Remember you can watch the video in HD!

Scripts are available for free download from my website.

Please use the Unity forums thread for asking questions as it's difficult for me to reply in the limited YouTube comment space.
Рекомендации по теме
Комментарии
Автор

Among all other youtubers self called "teachers", you are by far the very best. I dont have words to thank you enough! Excellent work, you're a very professional teacher.

aldaiphizer
Автор

Awesome to hear that you resolved each error on your own! That's one way of gaining a deep understanding of how the code is working, by fixing bugs and errors.

GamerToGameDeveloper
Автор

Just, wow. Amazing tutorials, you don't skip anything and explain everything, I admire your patince.

croser
Автор

I am addicted to your videos, they are SO good, I hope you will keep doing tutorials, even after series 1 is done.

Lantosse
Автор

I've just watched it.
That's not exactly what I was looking for... so that leads me to guess that implementing a full online server is way much harder than I thought.

Thanks!

ncks
Автор

Hi.i am Margus Nightcore from team Ultracore.

I want to thank you for your effort to make these tutorials. so far i have went to 5 of them. had some problems but got those fixed thanks to that i know autoit coding lang.

And for other ppl who are looking at tutorials i recommend you to look at subs on this video. made looking tutorials a lot more fun :D in here u can see it talking about alot of weird stuff :)
Please keep making tutorials :)

margusnightcore
Автор

Thank you! I won't get to animation and modelling just yet as my next two series will be focused on the currently existing multiplayer systems; series 2 will be mostly about improving what's happening in the background (tightening up code and data flow), and series 3 will be the integration of the Unity master server. Once the networking systems are solid I'll then work on implementing a player model and animation. I'm aiming to have the first videos for series 2 come out March 2013 or so.

GamerToGameDeveloper
Автор

Ask the others if they find this sub optimal. Everyone learns differently so this style of instruction isn't appropriate for everyone. Teaching is never a wasted effort, it is a natural behavior of all altruistic human beings and nothing developed by humans is so complex that it is beyond explanation. One of the best indications of a persons intelligence/knowledge is their ability to explain a subject in a manner that is understood by the majority even though it is perceived as being complex.

GamerToGameDeveloper
Автор

Glad to hear that it works on Android as well. Someday I intend to look at movement prediction (I have some ideas at the moment), but that is a very involved topic and I'm pretty sure good reliable prediction code is some serious Intellectual Property in the game development world!

GamerToGameDeveloper
Автор

So I managed to fix this problem. Instead of using the downloaded scripts, I just made the exact scripts but from the video and it worked. Sorry for all the fus. And thanks for this tutorial!

GoldyMember
Автор

Ok i done all from this movie :D after this i have a problem with cursor, but it was easy to resolve. only change the private to public in script :) Good videos!! Thanks!

mcx
Автор

@tinkergearsmith
The beauty of programming is that there's almost always more than one way to do the same thing. Some methods are more efficient than others, but at the end of the day it's up to the programmer to choose a method that makes the most sense to them at the time of writing that code.

GamerToGameDeveloper
Автор

So... now I feel dumb. I just saw your last video update, saying that you're going to upload another session for stablishing a public server.

I'm really looking forward to watch it!

ncks
Автор

That's one way to learn. Try and try again until it comes right.

GamerToGameDeveloper
Автор

If you're really concerned about hiding data stored in variables or enforcing data validation then you would do that. Here it's uncalled for and just using a public variable makes the code more readable and traceable. Despite what someone might have told you, there's really no need to use dynamite to dig a hole for a potted plant when a shovel will do the job just fine.

GamerToGameDeveloper
Автор

No worries, it's good you figured that out on your own.

GamerToGameDeveloper
Автор

I just loaded up the scene to check if run in background was on and, after testing it once more, found that it works now.
I think it may have been a unity bug which was fixed by simply reloading unity and now I feel stupid for not checking this yesterday :D

oliverjoshdev
Автор

I'd recommend that you watch video 33. Also check that Run In Background is enabled.

GamerToGameDeveloper
Автор

wow... I named the RPC function in the MovementUpdate script "UpdateMovement" instead of "updateMovement".... it didn't work XD well... now it does! :D Thanks for these tutorials!

soap
Автор

@Lantosse
LOL, being addicted to learning is definitely a good thing!

GamerToGameDeveloper
visit shbcf.ru