In this video we'll be getting our player shooting bullet prefabs towards our mouse. When our bullets hit our enemies, they'll be destroyed! We also add a on hit effect so our enemies flash white when damaged.
In our next episode we'll be adding a loot table to our enemies, so be sure to sub to check it out ;-)
❗️❗️❗️📢 BUY THE COMPLETE GAME TEMPLATE NOW!!! 👾❗️❗️❗️
https://gamecodelibrary.itch.io/2d-pl...
All source code for all videos I have made and will make in the future can be found on my Patreon:
https://www.patreon.com/posts/9222771...
Check out the series previous videos:
• FULL Platformer Tutorial Series - Uni...
Sprite sheet: https://www.kenney.nl/assets/1-bit-pl...
Discord: / discord
I'll be posting new videos every week, so be sure to subscribe to see what kind of adventure we can go on together! I'm excited! :-)
If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help us out on this journey ♡
0:00 - Intro
0:07 - Player Shoot Script
1:47 - Bullet Prefab
2:26 - TEST 1 (Shoot Bullet)
2:41 - Bullet Script
3:41 - Enemy Script
5:59 - TEST 2 (Enemy Hit Broken!)
6:04 - Enemy Script Fix
6:14 - TEST 3 (Working!!)
6:31 - Next Video
6:57 - Outro
Watch video Player Aim at Mouse and Attack Enemy - 2D Platformer Unity #16 online without registration, duration hours minute second in high quality. This video was added by user Game Code Library 01 December 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 794 once and liked it 35 people.