Hey everyone. In this episode, we're going to look at how we can use collision layers/masks from the Area3D to empower our turrets to start targetting and shooting at the enemies.
A short but (I hope) clear tutorial on this piece before we move on to the more exciting stuff of rotating our turrets and blasting away at those UFO's !!
As always, thank you SO much for the support. It's been amazing. If you're new to the channel, then a like, subscribe (or maybe both?!) is greatly appreciated.
And let me know what you think. Did it make sense? Any questions? Stick them in the comments and I'll do my best to answer them promptly!
Enjoy!
Link to GitHub source code: [ Ссылка ]
Chapters:
0:00 Introduction
1:30 Turret patrol area
6:00 Enemy collisions
8:10 Turret script to alert on enemies entering
10:40 Fixing the draggable turret!
13:00 Turrets storing enemies in range
16:52 Prologue!
Ещё видео!