Hello,
I've got a problem concerning the turn of objectives, while i turn them in a "while" loop.
the object is turning in the "while loop", that is what the variables say. The value of temprotation is increasing by 1 every loop. I checked that already by a print, but the object is not visibly changing. It is staying on it's rotation till it jumps out of the "while loop" then the object instant rotates to the new rotation. But i want a smooth rotation.
I am very happy if you can help me
ty, Talrasha
while(temprotation<rotationv2)
{
if(durationMillis2>=10)
{
gegner1.turn(1);
zeitblock = false;
temprotation = temprotation + 1;
System.out.println(temprotation);
}
if(zeitblock!=true)
{
startTime2 = System.currentTimeMillis();
}
zeitblock = true;
long currentTime = System.currentTimeMillis();
durationMillis2 = (int) (currentTime - startTime2);
}



