Swizzbeat Posted January 24, 2014 Posted January 24, 2014 (edited) Thanks to @Jack for sparking the idea Variables: int currentXP; int gainedXP; int drawXP; int screenWidth = 520; int screenHeight = 337; double yMovement; int alpha = 255; In your onStart method: currentXP = client.getSkills().getExperience(Skill.YOUR_SKILL); Code for your onPaint method: gainedXP = client.getSkills().getExperience(Skill.YOUR_SKILL); if (gainedXP != currentXP) { drawXP = gainedXP - currentXP; currentXP = client.getSkills().getExperience(Skill.YOUR_SKILL); yMovement = 0; alpha = 255; } if (drawXP != 0 && alpha > 1) { g.setColor(new Color(255, 255, 255, alpha -= 2)); String drawString = "+ " + drawXP; int stringLength = (int) g.getFontMetrics().getStringBounds(drawString, g).getWidth(); g.drawString(drawString, screenWidth / 2 - stringLength / 2, (int) ((screenHeight / 2) - (yMovement += .7))); } If you're drawing other things after this remember to set the color back to what you want!! Here's what it looks like in game: Edited January 24, 2014 by Swizzbeat 2
Swizzbeat Posted January 24, 2014 Author Posted January 24, 2014 (edited) nice, I hope i helped I forget what it is you said but it sparked something, so yes you did help and I thank you added you to OP as well Edited January 24, 2014 by Swizzbeat