My run orb stays at 100 when running any idea how to fix
Code:
public boolean runClicked = false;
public void drawRunOrb() {
Sprite orb = (runClicked ? runOrb2 : runOrb1);
Sprite icon = (runClicked ? runIcon2 : runIcon1);
int x = isFullScreen ? 358+extraWidth : 0;
int y = isFullScreen ? +32 : 0;
int x2 = isFullScreen ? extraWidth-160 : 0;
int y2 = isFullScreen ? +36 : 0;
int xPos = isFullScreen ? 387+extraWidth-5 : 0;
int xPosTXT = isFullScreen ? 335+extraWidth-5 : 0;
int yPos = isFullScreen ? +32 : 0;
if(isFullScreen) {
hoveredEmpty = new Sprite("GameFrame/Orbs/1127");
} else {
hoveredEmpty = new Sprite("GameFrame/Orbs/hoveredempty");
}
emptyOrb.drawSprite(185+x, 85+y);
if (super.mouseX > 713+x2 && super.mouseX < 765+x2 && super.mouseY > 83+y2 && super.mouseY < 118+y2){
hoveredEmpty.drawSprite(185+x, 85+y);
}
orb.drawSprite(188+xPos, 88+yPos);
icon.drawSprite(195+xPos, 93+yPos);
int colour;
colour = 65280;
smallText.method382(colour, 229+xPosTXT, "100", 111+yPos, true);
}
Sprite wise i have the orbs just need help on the draining methood :/