0

So the title says what i need. Here a code where it should work.

public void Left (View view)
{
   for (int i = 0; i < 20; i++)
   {
      "Time pause for 1 sec"
      Player.setX(Player.getX() + 5);
   }
}

postDelayed don't works and the other ones dont pause because it is the only code that is working

So I would need a short code to stop only the counting loop for 1 sec. Is there a method for this. It also can be a long code that works in there and could you show me the code with my code please.

Padiasek
  • 11
  • 1

0 Answers0