0

Hey there I'm using libGDX and I have following problem, just can't see what I'm doing wrong:

I have

float generatingTime = 0;

if (generatingTime < 1.0f){
   generatingTime =+ 0.01f)
   }

if (generatingTime == 1.0f){
   objectState.state = objectState.GENERATED;
   }

Somehow my float generatingTime never is exactly "1.0f". What am I doing wrong?

Thank you for helping guys!

0 Answers0