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/87477488?pr=true
Previous videos for our top down game:
https://youtu.be/HCaSnZvs90g
https://youtu.be/_xYcrDjnjM8
https://youtu.be/m1x9YFzTX2A
https://youtu.be/WLg-jWxFF8w
https://www.buymeacoffee.com/gamecodelibrary
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!