Hey there.
I have an object (cow) within another object (ranch), and I want an enemy to move according to the angle of the cow within the ranch. Like it mimics the cow.
Let's say the cow is to the top right of the ranch, it will have an angle of 225.
I want the enemy to look at that direction, top right, then I'll just add speed, and it will move.
The issue is that I can't figure how to turn that angle into a valid direction, searching through this forum I found that apparently the formula is to just divide the angle by 11.25 and that will give you the direction, except it will not.
225 / 11.25 = 20.
A direction of 20 is actually bottom left. The value I'm looking for is 4, unless there's a way to mirror the angles, perhaps?
I'd really appreciate your help, I have been stuck with this all day.