filmov
tv
2D Shooting | Unity Tutorial (Two Types of Projectiles!)
Показать описание
By the end of this 2D Unity tutorial we'll have our little character shooting and damaging enemies with our ranged combat system.
I'll show you how to aim your gun towards the mouse cursor (using the new Input System,) how to rotate the gun after a certain degrees threshold, and how to rotate your bullets when they are spawned in (as well as how to rotate them towards your velocity direction!)
To make this more fun, I'll show you an easy way to setup TWO kinds of projectiles that you can shoot.
I cover a lot here, so we're going to go through this 2D shooting tutorial fast!
Link to Download the FREE 2D Asset Pack seen in this tutorial:
---
---
Credits-----------------------------------------------------
Contents of This Video: ------------------------------------------
00:00 - Intro + Scene Explanation
00:42 - Rotating Gun Towards Mouse
03:58 - Flipping the Gun When You Aim Backwards
06:53 - Instantiating Bullets that Face the Shot Direction
10:27 - Get Bullets to Move in Shot Direction
12:21 - Handling Bullet Destruction
14:53 - Adding a Second Bullet Type to BulletBehavior
19:15 - Rotate Bullets' Facing Direction Based on Velocity
19:51 - Applying Damage to ANY Damageable Object
Who We Are-------------------------------------
If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
Wishlist our Games:
Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
Follow us on Twitter for regular updates!
#unitytutorial #unity2d #unity3d
Комментарии