Tommy Leung from Ourcade writes: "Are you making a top-down game where enemies or opponents should track or keep their eye on the player?

Maybe you have a turret that should face a moving target before firing?

You know that you need to rotate the turret but how do you know what that angle should be?

If you remember your trigonometry classes then you can probably figure it out but Phaser can do the math work for us!

In this article, we will show you how to get that angle using the player's position and the position of the enemy that should face the player."

Read More