For my helicopter game I want the helicopter to move at a certain range of angles, how would I make the code so It moves when between 90 and 120 degrees?
if (facingRight)
{ // facing right
if (rotation >= 0 && rotation <= 30) move();
}
else
{ // not facing right
if (rotation >= 150 && rotation <= 180) move();
}