Quote (coldguy @ Mon, 18 May 2009, 22:00)
how do i move the exp bar properly without messing it up?
Quote
// Create an expbar with bg 'cool' color and the cover of your level in red.
imagefilledrectangle($image, 235, 46, 365, 56, $black); big square
imagefilledrectangle($image, 236, 47, $brpixelX, 55, $white); lil square
235 - 265 = width
46-56 = height
236 = inner width
47-55 = inner height
next step:
in code:
Quote
//function calcBrPixelX($input,$xpbar_width)
{
$temp1 = fmod($input,1000000);
$temp1 = ($temp1/1000000);
$temp1 = $temp1 * $xpbar_width;
$temp1 = $temp1 +
235;
change this value to be same as
THIS return (int)$temp1;
}