Question by
RazorFinger · Jul 26, 2017 at 02:02 PM ·
2dinstantiateplatformer
How to instantiate a static 2D object facing the player
In my game, i have a turret enemy, which spawns in three specific spawn points scattered in the arena. They always spawn facing left. The problem with that, is that the leftmost turret is stuck aiming at the wall. The other problem is that i am spawning them randomly throughout the spawn points, using Random.Range. So what i need to do, is to make it so that i spawn them already facing the player, but then have them stay that way, not follow the player around. I have other enemies that always face the player, but i can't use their logic because the turrets should keep facing only one direction. How would i go about doing something like this?
Comment