Hope everyone had a merry Christmas! Im back working on my project and was wondering how I could get my enemies to move in a 90 degree movements towards my player. My enemies keep moving in angles when going towards him.
I have them move the way I want them to move in my wander state, moving in the degree of 0, 90, 180, and 270. But when it comes to targeting the player, they just cut across the screen to target him and not move in, 0, 90, 180 and 270 degrees towards him. How do I get enemy using the bullet behavior to move towards player in 0, 90, 180 and 270 degree movements?
This is move my code I have for their wander state.
This is the code I have for the enemy pursue state.