This video we add melee and ranged attacking to our player in our top down game.
This is one of many ways to add combat in your games! This method for aiming works well for both controller and keyboard control for movement.
You can get the whole package containing everything found in this video on my Patreon - as well as FREE scripts for player and enemy movement:
https://www.patreon.com/posts/8747748...
Previous videos for our top down game:
• Quick and Easy Top Down Movement - Unity 2D
• BEST Top Down 8 Directional Animation - Un...
• Enemy Chase Player - Top Down Unity 2D
• Enemy Gather Around Player - Top Down Unit...
https://www.buymeacoffee.com/gamecode...
I'll be posting new videos every Thursday/Friday, so be sure to subscribe to see what kind of adventure we can go on together!
If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help me out on this journey ♡
0:00 - Intro
0:13 - Enemy Script - TakeDamage()
0:51 - Aim - Object
1:27 - Melee - Object
2:08 - Aim - Script
3:50 - Attack - Script
5:40 - Weapon - Script
6:34 - Test Melee
6:59 - Ranged - Script
8:49 - Bullet Prefab
9:29 - Test Ranged
9:41 - Destroy Bullet on Hit
10:28 - Finished!