I got a problem with changing images, I tried like 4 diffrent codes but nothing worked.
Please help me:
public void act() {
if (Placed == true && verstricheneZeit / 100 > rate) {aimAndShoot(); verstricheneZeit = 0; updateImg();}
}
public void updateImg() {
if (imgCount==0) {setImage("Tower_shoot_start.png"); imgCount++;}
else if (imgCount==1) {setImage("Tower_shoot_second.png"); imgCount++;}
else if (imgCount==2) {setImage("Tower_shoot_third.png"); imgCount++;}
else if (imgCount==3) {setImage("Tower_shoot_end.png"); imgCount=0;}
}


