Set direction from angle

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • 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.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!