2D Shooting | Unity Tutorial (Two Types of Projectiles!)

Subscribers:
59,700
Published on ● Video Link: https://www.youtube.com/watch?v=zYN1LTMdFYg



Category:
Tutorial
Duration: 25:12
1,437 views
60


Join our Discord Community! - https://discord.com/invite/aHjTSBz3jH
Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) - https://www.patreon.com/sasquatchbgames
Wishlist Veil of Maia! - https://store.steampowered.com/app/1948230/Veil_of_Maia/

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 2D Asset Pack seen in this tutorial:
https://veilofmaia.com/tutorial-asset-pack/

Credits-----------------------------------------------------

Unity Vector2.normalized Documentation Pic:
https://docs.unity3d.com/ScriptReference/Vector2-normalized.html

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.

Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!

Read our First Development Blog:
https://www.sasquatchbstudios.com/blog/

Want to be FIRST in line when the Free Demo is released?
Sign up for email updates and first access to the demo @ https://veilofmaia.com/

Follow us on Twitter for regular updates!
https://twitter.com/SasquatchBGames

***Purchase Links***
For those that would like to support the channel, please consider using the affiliate links below should you purchase a recommended product. We really appreciate it!

Equipment: We've been asked what we use, so here it is:

Microphone: Blue Yeti
Purchase in Canada: https://amzn.to/3WUXcWO
Purchase in USA: https://amzn.to/3Tke468

RGB Lights:
Purchase in Canada: https://amzn.to/3tflrkR
Purchase in USA: https://amzn.to/3g0Ci7L

Keylight: (Note: We use 2 of these for our lighting setup)
Purchase in Canada: https://amzn.to/3UINapv
Purchase in USA: https://amzn.to/3hq7sWx

#unitytutorial #unity2d #unity3d







Tags:
unity tutorial
unity 2d
unity ranged combat
unity ranged attack
unity 2d shooting
unity shooting
unity aim towards mouse cursor
unity damage enemies with projectiles
unity projectiles
ranged combat system
unity ranged combat tutorial
unity projectile tutorial
unity 2d shooting tutorial
sasquatch b
sasquatch b studios
unity 2d shooting enemy
unity bullet
unity projectile
unity bullet physics
unity shooting projectile
unity tutorial for beginners