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?


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