Hey there!
So I’m trying to do an AI for the bots ships in my game, and I need to make a function that will make the ship look at the target ship. That part is under control, except for one thing:
I need to do is a function that allows me to see if the target is either under or above the ship and if its either at its left or right. So that when the FSM gets to that point, it makes my ship go left, right, up or down. (the ShipMovement.js already handles that, is just a matter os calling move.moveUp(), move.moveDown(), move.moveLeft(), move.moveRight());
So any orientation in this?
Thanks in advance. JPB18