Quote (pu3ska @ Sun, Aug 30 2009, 12:10pm)
// Create an expbar with bg 'cool' color and the cover of your level in red.
imagefilledrectangle($image, 180, 59, 280, 71, $cool);
imagefilledrectangle($image, 180, 59, $brpixelX, 71, $red);
Can any1 please tell me which property affect the X and Y ? cause everytime I change 180 and 59 the width/lenght of the exp bar is getting affected not the X and Y (which is the location of the bar).
ty in advance
Quote (Skitty @ Thu, Dec 11 2008, 07:10pm)
imagefilledrectangle($image, X-Coordinate of Bar Background, Y-Coordinate of Bar Background, End X-Coordinate of Bar Background, End Y-Coordinate of Bar Background, $cool);
imagefilledrectangle($image, X-Coordinate of Bar, Y-Coordinate of Bar, $brpixelX (icon_pointl.gif The calculated End X-Coordinate of Bar), End Y-Coordinate of Bar, $red);
Using the flapmo's guide.. you must also edit the width/height if you decide to change things.
Code
// set some dimensions for future use
$expbar_width = 100;
$expbar_height= 25;