- Home /
Question by
Seihu · Aug 07, 2017 at 12:18 AM ·
c#2d-platformertargetingspawning-enemiesoff-screen
(2D) Spawn enemies off-screen and have them to follow the Player as a target
Hi, I'm pretty new to programming and I'd like to know how to make a script in C# that will spawn enemies off-screen just like in Terraria and then have them to follow/chase the Player instead of patrolling around with a limited range.
The spawn rate is supposed to be random with a set amount of enemies at a time and as soon as they spawn their target will always be the Player. Or maybe I'm asking for too much?
Anyone out there with that knowledge?
Comment