How to make a flying enemy fly down at the player?

I’m making a 2d game where I want to make a bat attack from the air when it is in the player radius. But I don’t know how to make the bat fly down at the exactly right spot where the player is. How can I make it fly down exactly at the player and not above or under? Note: I’m using a tick event to handle the movement.

Okay, I solved it. I took the height distance between the players and divided it by a number which would be the velocity.

1 Like