Important Notice:

On July 31st, 2017 the Digital-Tutors library will be retired along with Digital-Tutors concurrent licensing. Effective August 1, 2017 any active group plans will be redirected to www.pluralsight.com. Each group plan will receive one individual user license on Pluralsight for each active Digital-Tutors license. Please contact your account representative for any additional questions.
Melee Weapon Systems in Unity
See Details
Released Mar 1, 2012
Joshua Kinney

Pluralsight

Joshua Kinney
In this series of Unity tutorials, we learn how to create a melee weapon system that we would see in most hack and slash style games. Throughout these tutorials, we'll learn how to create a melee system that you would see in most hack and slash video games today. Although this course does not cover extremely advanced techniques, you will learn enough to customize this system for your very own projects. We'll start off by talking about a few key tips we need to know before we import a rig into Unity. Then we'll begin scripting a simple user interface to give our user damage feedback. Following that we'll create the script that will handle how to deliver damage and how to limit the range of our attacks. Then we'll create a basic enemy AI that will watch and listen for our player. Then we'll wrap it up with applying physics to our melee combat system.
Introduction and project overview
1

Introduction and project overview

 
01:03
Preparing the first person rig
2

Preparing the first person rig

 
04:47
Importing the project files
3

Importing the project files

 
08:01
Setting up the player
4

Setting up the player

 
11:18
Creating the enemy health script
5

Creating the enemy health script

 
11:13
Creating the player attack script
6

Creating the player attack script

 
10:24
Modifying the player attack
7

Modifying the player attack

 
12:34
Creating the attack timer
8

Creating the attack timer

 
07:17
Setting up the player animations
9

Setting up the player animations

 
13:08
Creating the enemy AI
10

Creating the enemy AI

 
13:23
Creating the player detection function
11

Creating the player detection function

 
14:52
Creating the ListenForPlayer function
12

Creating the ListenForPlayer function

 
07:13
Creating the enemy attack functionality
13

Creating the enemy attack functionality

 
08:58
Applying physics to the weapon system
14

Applying physics to the weapon system

 
09:39