So I have a "recharge" meter in my game that visually lets the player know how much the gun has recharged. I wrote this method. But I need help because for some reason the image for the meter stays at the default image and won't change. (Rocket.maxRecharge is a final int set to 200, and Rocket.recharge is an in that is constantly increasing and resets to zero when the spacebar is pushed.)
public void changeMeter()
{
for(int i = 0; i < 7; i++)
{
if((Rocket.maxRecharge /6) * i-1 < Rocket.recharge && Rocket.recharge < (Rocket.maxRecharge / 6) * i)
{
setImage("chargemeter" + i + ".png");
scaleImage(75, 100);
}
}
Thanks!