How can I make a ball always move towards the player character?
in
Programming Questions
•
5 months ago
I'm making a game that has an enemy move in a circle around the center of the screen (kind of like an orbit). The player is within this circle, it can move around.
The enemy shoots balls out every 3 seconds. I want these balls to always be aimed at the player's current position. It doesn't need to follow the player around when it moves, but it needs to be aimed towards the player.
Here are some images to show what I want to do. The red arrow is how the ball should move.
Thanks in advance.
The enemy shoots balls out every 3 seconds. I want these balls to always be aimed at the player's current position. It doesn't need to follow the player around when it moves, but it needs to be aimed towards the player.
Here are some images to show what I want to do. The red arrow is how the ball should move.
Thanks in advance.
1