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.
Instantiate projectiles - Unity Tutorial
From the course: Unity 5: Network Gaming
Instantiate projectiles
- [Male Instructor] Now that we have highly identifiable tanks rolling around our scene it would be terrific if we could get down to the serious business of trying to destroy each other. For that we're going to need projectiles. So let's make a really simple projectile system, the kind you see pretty much everywhere. After we build a simple projectile system we can network enable it. I'll start with a projectile itself. For this I'm just going to start with a sphere. I'll right-click, select sphere and we're going to make sure that the position on it is dead-center, zero, zero, zero. I'll come over to the gear on the transform and select reset. One of the things I want to do when I'm building this is be careful that I setup the parent game object for this. I'll go ahead and create it. I'll create an empty one. Also make sure that it's transform is at zero, zero, zero. Now they're essentially on top of each other. I'm assuming that, if later you were to come back and make an actual…
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)
-