ID:261499
 
Hello I want my helth to be shown on the screen. So I login then in the top right cornor of my screen I see 70/70 cause my HP is 70 out of a max of 70. How could I get it to do this and also increase it when I am hit or healed?
Zilal has a tutorial on numbers on screen and Sariat/BYONDCodeClient has a good demo (source for a price) about health meter.
In response to Exadv1
Exadv1 wrote:
Zilal has a tutorial on numbers on screen and Sariat/BYONDCodeClient has a good demo (source for a price) about health meter.

I looked in the Tutorials section and Zilal has three of them out. What one would have the printing numbers to the screen? And what section would it be in?
In response to Green Lime
In response to Green Lime
Zilal's demo is actually a BYONDscape artical: http://www.byondscape.com/scape.dmb/content/000023/ index.html

Don't forget sd_Text, which features client screen text displays among other things. It's not as pretty for number-only displays, but it is extremely flexible and could be implimented in your game with just a few lines of code. You could even create your own font, if you don't like the one that comes with the library.

You can download a <font color=#ffffee>free</font> demo of sd_Text at http://www.byond.com/hub/hub.cgi?hub=Shadowdarke/sd_TextDemo. The chat box at the bottom of the screen and the various menu commands demonstrate client screen windows. Just create a small sd_textwindow in the corner and output the player's health to the window whenever it changes.
In response to Shadowdarke
Shadowdarke wrote:
Zilal's demo is actually a BYONDscape artical: http://www.byondscape.com/scape.dmb/content/000023/ index.html

Don't forget sd_Text, which features client screen text displays among other things. It's not as pretty for number-only displays, but it is extremely flexible and could be implimented in your game with just a few lines of code. You could even create your own font, if you don't like the one that comes with the library.

You can download a <font color=#ffffee>free</font> demo of sd_Text at http://www.byond.com/hub/hub.cgi?hub=Shadowdarke/sd_TextDemo. The chat box at the bottom of the screen and the various menu commands demonstrate client screen windows. Just create a small sd_textwindow in the corner and output the player's health to the window whenever it changes.

I have to pay for those isnt there any thing out there that can help me with my problem that I dont have to pay for?
In response to Green Lime
Green Lime wrote:
I have to pay for those isnt there any thing out there that can help me with my problem that I dont have to pay for?

Heh, I was hoping after you saw the free demo that you'd think BYONDscape was worth a dollar to have access. ;)

Nadrew has a free HUD demo at http://www.byond.com/hub/ hub.cgi?qd=hubIndex;hub=1627;channel=2813, but I don't think it has anything to do with number displays. It will get you started using the client screen.

I don't want to undermine Z's artical (or my library for that matter), so I'll just give you a nudge in the right direction. You want to chop the number up into a series of characters ("70" is "7" and "0"), then use them as a icon_states. The icons you use to represent the numbers on screen should have icon_states for each digit.
In response to Shadowdarke
Shadowdarke wrote:
Green Lime wrote:
I have to pay for those isnt there any thing out there that can help me with my problem that I dont have to pay for?

Heh, I was hoping after you saw the free demo that you'd think BYONDscape was worth a dollar to have access. ;)

Nadrew has a free HUD demo at http://www.byond.com/hub/ hub.cgi?qd=hubIndex;hub=1627;channel=2813, but I don't think it has anything to do with number displays. It will get you started using the client screen.

I don't want to undermine Z's artical (or my library for that matter), so I'll just give you a nudge in the right direction. You want to chop the number up into a series of characters ("70" is "7" and "0"), then use them as a icon_states. The icons you use to represent the numbers on screen should have icon_states for each digit.

Hmm I think I will take a look at that lib with the Dmg_numbers thingy. And thanks for the info man you been some help.
In response to Green Lime
but mine only costs 5 dimes! 5 dimes! thats 50 cents!