I'm developing a pirate ship game, and am having trouble with the NPC ship movement and combat.
I tried using Pathfinding, but I want the NPC ships to turn to the side in order to fire at the player (you know, like a normal sailing ship).
I originally did (excuse the psuedo code): Pathfinding to player -> stop when distance is <= 300 -> turn until player at 90 deg. angle -> fire
However, it looks unnatural and I want the NPC to steer naturally and keep moving 'around' the player at a 90 deg angle. If the player then moves, the NPC adjusts, and so on.
I saw in this thread construct.net/en/forum/construct-2/how-do-i-18/pathfinding-car-behavior-120396 that the poster had a similar issue, however the .capx solution isn't available anymore and no real explanation was given.
Has anyone else got experience with this?