I want to animate a png but i m not able to do that.
I want to check how close the class is for every fps i.e. the crate animation should increase vigorously if any class is getting closer to it....
//globally byte count; //act method count++ if(count<11 && count>0) setImage(crate1.png); else if(!getObjectsInRange(80,Actor.class).isEmpty() && count >11 && count<22) setImage(crate2.png); else(count>22) count=0;

