From the course: Unity 5: Network Gaming
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Multplayer projectiles - Unity Tutorial
From the course: Unity 5: Network Gaming
Multplayer projectiles
- [Instructor] In our last video, we added a non-network projectile fired by our players. In this video, we'll network-enable those projectiles. Since we already network-enabled a tank, you can guess how most of this will go. We're going to start by finding the projectile prefab in the assets window. Just like with the tank, we need to add the network identity component to it, so I'll select add component. I'll filter it on network and I'll find the network identity component and add it. We're also going to need a network transform. I'm going to close some of these up to make it a little bit easier to see and I'm going to move this down a little bit since we don't need to preview it anymore. And I'll add the network transform component. One adjustment I'm going to want to make on the projectile is something we talked about earlier, the network send rate. Earlier, when we talked about the network send rate, we talked about it with respect to the tank and we pretty much just left it at…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Project overview3m 15s
-
(Locked)
Set up the Network Manager2m 11s
-
(Locked)
Network identity3m 1s
-
(Locked)
Testing the game3m 46s
-
(Locked)
Network transform6m 58s
-
(Locked)
The local player6m 26s
-
(Locked)
Instantiate projectiles6m 58s
-
(Locked)
Firing projectiles6m 5s
-
(Locked)
Multplayer projectiles5m 2s
-
(Locked)
Adding a health indicator, part 12m 53s
-
(Locked)
Adding a health indicator, part 23m 44s
-
(Locked)
Adding a health indicator, part 34m 46s
-
(Locked)
Multiplayer health5m 54s
-
(Locked)
Fragging the enemy5m
-
(Locked)
Respawning6m 14s
-
(Locked)
-