THANK YOU THANK YOU THANK YOU!!! now another question if you dont mind, how would I code a boolean statement where if the heli's angle was >= 20, it would move along x axis?


private boolean movingLeft = false;
movingLeft = !movingLeft;
if ((movingLeft && getRotation() <=340 && getRotation() >=290) || (!movingLeft && getRotation() >= 20 && getRotation() <=70))
if (getRotation() <=20) setLocation(getX() + 1, getY());