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
Смотрите видео Player Aim at Mouse and Attack Enemy - 2D Platformer Unity #16 онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Game Code Library 01 Декабрь 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 794 раз и оно понравилось 35 посетителям.