Hi there! So I have set up a pathfinding algorithm for enemies which follow specific paths. However, I only want to set their angle to 0, 90, 180 and 270. Is there a way to do this, ie force the enemy sprites to set angle to only 90, 180 270 and 360 according to its pathfind's general direction? Thanks in advance for any help!
NOTE: I have tried rounding the angles in every tick, although there are always small jitters and zigzags in the "straight" path, which causes the enemies' angles to not be set to its general direction.