Unity 2D | In this video we have analyzed one of the possible ways to create shooting. This method consists in creating the first point (spawn) and the second point (direction). When creating a cartridge, it tracks the coordinates of the second point through the use of GameObject.Find ("name").
This method has its drawbacks, but its advantage is that the cartridge always flies in the direction of the second point and thus we will avoid a small bug (when the cartridge flies anywhere but the required direction).
Our links:
1. Группа Вконтакте: https://vk.com/atomixall_gamedev
2. Мы в TikTok: / atomixall_gam. .
3. Канал на YouTube: / @atomixall_ga. .
4. Поддержи нас на Boosty: https://boosty.to/atomixall
5. Хочешь сделать заказ? Оформи Kwork: https://kwork.ru/user/atomixall
#unity #unity2d #indiegame #gamedev #developer