Hello,
Project i'm currently working on uses velocity to move the player around. I would like the projectiles of a turret to follow the player like in Ashley's turret tutorial - the current formula is:
bullet.speed+player.8Direction.Speed/2+distance(self.X,self.Y,player.X,player.y)+100*dt
As my player does not use 8Direction this formula does not work. I'm unsure what the best way to convert it is - I have been playing around with changing the 8Direction.Speed to different Velocity params but to no avail. I have also tried to compare 8Direction to Velocity and vice versa but the math is a little past my level of experience.
Any advice would be much appreciated.