d2jsp
Log InRegister
d2jsp Forums > d2jsp > Ladder Slasher > Guide: How-to Make A Dynamic Ladder-slasher Sig > In A Few Easy Steps With Pics
Prev157585960Next
Add Reply New Topic New Poll
Member
Posts: 50,182
Joined: Sep 20 2007
Gold: 100,420.73
Dec 24 2009 04:00pm
need some help with this part

imagefilledrectangle($image, 180, 59, 280, 71, $cool);
imagefilledrectangle($image, 180, 59, $brpixelX, 71, $red);

which are used for location coordinates and which are used for size? i believe the last number (71) is thickness of the exp bar (tall) but if someone could help me here that would be awesome.

thanks!


oh and if someone can point me in the right direction for a color code chart, id be super thankful!

This post was edited by jlhromeo on Dec 24 2009 04:02pm
Member
Posts: 8,878
Joined: Oct 16 2007
Gold: 728.36
Dec 24 2009 11:26pm
Quote (jlhromeo @ Dec 24 2009 04:00pm)
need some help with this part

imagefilledrectangle($image, 180, 59, 280, 71, $cool);
imagefilledrectangle($image, 180, 59, $brpixelX, 71, $red);

which are used for location coordinates and which are used for size?  i believe the last number (71) is thickness of the exp bar (tall) but if someone could help me here that would be awesome.

thanks!


oh and if someone can point me in the right direction for a color code chart, id be super thankful!


This helpful? -> http://www.pagetutor.com/common/bgcolors1536.png
Member
Posts: 50,182
Joined: Sep 20 2007
Gold: 100,420.73
Dec 24 2009 11:51pm
Quote (westside3773 @ Dec 25 2009 12:26am)


yes thanks a bunch. now i am stuck on the exp bar issue above. <_<
Member
Posts: 50,182
Joined: Sep 20 2007
Gold: 100,420.73
Dec 26 2009 08:38pm
Quote (jlhromeo @ Dec 24 2009 05:00pm)
need some help with this part

imagefilledrectangle($image, 180, 59, 280, 71, $cool);
imagefilledrectangle($image, 180, 59, $brpixelX, 71, $red);

which are used for location coordinates and which are used for size?  i believe the last number (71) is thickness of the exp bar (tall) but if someone could help me here that would be awesome.

thanks!


oh and if someone can point me in the right direction for a color code chart, id be super thankful!


still stuck on this... having trouble understanding how the exp bar function works... not sure which co-ordinate controls what, etc. A nice description or diagram would be awesome. ^_^
Member
Posts: 50,182
Joined: Sep 20 2007
Gold: 100,420.73
Dec 27 2009 01:59pm
Sorry for bumping this but I can't edit mah post...

Simplest way to explain my issue: I want to keep the exp bar's SIZE the same as your tutorial, I just want to move it around. Every time I try to do this I end up with a retarded looking box, and the red progress part of it seems to get screwed up.

Will donate to someone that can help teach me how to do this correctly. I have aim/msn or we can converse via PM

This post was edited by jlhromeo on Dec 27 2009 01:59pm
Member
Posts: 9,437
Joined: Jan 3 2008
Gold: 2.85
Dec 29 2009 12:20pm
Quote (jlhromeo @ Dec 27 2009 02:59pm)
Sorry for bumping this but I can't edit mah post...

Simplest way to explain my issue: I want to keep the exp bar's SIZE the same as your tutorial, I just want to move it around. Every time I try to do this I end up with a retarded looking box, and the red progress part of it seems to get screwed up.

Will donate to someone that can help teach me how to do this correctly. I have aim/msn or we can converse via PM


the best way to do this is useing this
http://forums.d2jsp.org/topic.php?t=33266382&f=272

and then export it and upload to ur webspace
or u can use that and leave it on his server to use for free and its easy to use

if i had internet at my house i would be making charters and sigs and sutff and updating all the ones i have atm made
but the best way is that thing unless u know codeing
Member
Posts: 50,182
Joined: Sep 20 2007
Gold: 100,420.73
Dec 29 2009 12:57pm
Quote (keefer7 @ Dec 29 2009 01:20pm)
the best way to do this is useing this
http://forums.d2jsp.org/topic.php?t=33266382&f=272

and then export it and upload to ur webspace
or u can use that and leave it on his server to use for free and its easy to use

if i had internet at my house i would be making charters and sigs and sutff and updating all the ones i have atm made
but the best way is that thing unless u know codeing


thanks, but I do know coding to a certain extent, and I am learning more each day. I want to be able to code my own EXP bars, for my own use, not borrow someone else's code or have someone else make the whole thing for me.

I have figured this much out so far:
imagefilledrectangle($image, 180, 59, 280, 71, $cool);

the 59 and 71 control the height of the rectangle. keeping them 12 apart (71-59=12) makes a nice slim rectangle, not super thick but not too thin.

the 180 and 280 I assume are the start and end (width) of the rectangle, however when i try to MOVE mine (example, move exp bar from middle of image to left side), the exp gets messed up (50% does not end up in the middle, etc... something is wrong with the math)

will mess with it later, thanks for the suggestion but I dont want to use his generic sig creator, would rather learn how myself :)

This post was edited by jlhromeo on Dec 29 2009 12:58pm
Member
Posts: 1,909
Joined: May 8 2007
Gold: 2,507.26
Jan 12 2010 11:32am
It are actually the (x,y) coordinates of the two corners of the rectangle:

Code
|-----------------------------------p2|
|                                   |
p1-----------------------------------|


p1 = (180,59) and p2 = (280,71), effectively making a rectangle of width 100 and height 12, starting at x = 180 and ending at x=280 and y = 59 and ending at y=71. (pixel locations in you image).

It can also be

Code
|p1-----------------------------------|
|                                     |
|-----------------------------------p2|


dont pin me on the system, do not know if it is left or right-handed.

This post was edited by flapmo on Jan 12 2010 11:33am
Member
Posts: 3,297
Joined: Jan 13 2010
Gold: 1.90
Jan 26 2010 06:35pm
Very Usefull tut, ty
Member
Posts: 9,124
Joined: Apr 2 2008
Gold: 10.21
Jan 27 2010 05:41pm
Quote (jlhromeo @ Dec 29 2009 02:57pm)
thanks, but I do know coding to a certain extent, and I am learning more each day.  I want to be able to code my own EXP bars, for my own use, not borrow someone else's code or have someone else make the whole thing for me.

I have figured this much out so far:
imagefilledrectangle($image, 180, 59, 280, 71, $cool);

the 59 and 71 control the height of the rectangle.  keeping them 12 apart (71-59=12) makes a nice slim rectangle, not super thick but not too thin.

the 180 and 280 I assume are the start and end (width) of the rectangle, however when i try to MOVE mine (example, move exp bar from middle of image to left side), the exp gets messed up (50% does not end up in the middle, etc... something is wrong with the math)

will mess with it later, thanks for the suggestion but I dont want to use his generic sig creator, would rather learn how myself :)


You can pm my boyfriend daybreaker9 or my friend Azrad for help on the coding part, I'm sure they can help you answer some questions and they are usually on vent too if you want to talk there rather than pms. :)

Azrad has become pretty pro, he coded this img:



and yes the character pics update each pass, change, ect. :)

This post was edited by Mezandria on Jan 27 2010 05:43pm
Go Back To Ladder Slasher Topic List
Prev157585960Next
Add Reply New Topic New Poll