While loop bug? Stuck on empty

  • Is your while () loop under the “Animation” Thread?
  • If it is so, you’re better off calling noLoop() in place of that loop.
  • And have your other Thread calling loop() or redraw() instead of nextMove = true;.