Angle is greater / less than

  • Hello, hope someone can assist

    in construct classic, there was the "angle is greater than" condition, but now its gone.

    whats the C2 syntax for

    angle is greater than 6

    angle is less than 6

    I'm a bit lost as to the new implementation and not very math inclined..

    Thanks

  • An angle is just a number, so you can use Compare two values, and pick the comparison type.

  • I understand that, but I need to know the syntax useage example using the new angle events "is between" or "is within"

    thx.

  • Note that in "Is between angles" event the first angle is inclusive, while the second is NOT inclusive.

    So "Is between angles 10 and 20" means "10<= angle < 20".

    If the angle is exactly 20 degrees, this condition will be false.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Note that in "Is between angles" event the first angle is inclusive, while the second is NOT inclusive.

    So "Is between angles 10 and 20" means "10<= angle < 20".

    If the angle is exactly 20 degrees, this condition will be false.

    dop2000 Thanks for responding. Can you possibly give me the syntax for "if angle is greater than 6" just so I can understand it clearly? thankyou.

  • System -> Compare two values -> angle>6

    "angle" can be sprite.angle or angle(x1, x2, y1, y2) or some other expression.

  • Ah, thankyou, I was under the assumption I had to use another condition, now I understand!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)