ID:150588
 
I was woundering how u make a health bar appear over your player?
Robot100 wrote:
I was woundering how u make a health bar appear over your player?

use overlays, and make a healthbar obj
In response to FIREking
FIREking wrote:
Robot100 wrote:
I was woundering how u make a health bar appear over your player?

use overlays, and make a healthbar obj

I ment an example of code.
In response to Robot100
Robot100 wrote:
FIREking wrote:
Robot100 wrote:
I was woundering how u make a health bar appear over your player?

use overlays, and make a healthbar obj

I ment an example of code.

He "ment" use overlays, and make a healthbar obj, Green Lime.
In response to Vortezz
Vortezz wrote:
Robot100 wrote:
FIREking wrote:
Robot100 wrote:
I was woundering how u make a health bar appear over your player?

use overlays, and make a healthbar obj

I ment an example of code.

He "ment" use overlays, and make a healthbar obj, Green Lime.

grrrrrrrr
so what then How am I making the obj bar hold my health?
how I make it go over me. new /obj/healthbar(locate(usr.x,usr.y + 1,usr.z))
In response to Robot100
Robot100 wrote:
Vortezz wrote:
Robot100 wrote:
FIREking wrote:
Robot100 wrote:
I was woundering how u make a health bar appear over your player?

use overlays, and make a healthbar obj

I ment an example of code.

He "ment" use overlays, and make a healthbar obj, Green Lime.

grrrrrrrr
so what then How am I making the obj bar hold my health?
how I make it go over me. new /obj/healthbar(locate(usr.x,usr.y + 1,usr.z))

I answered this, but then you were rude to me.

So I deleted it.

Happy Birthday, Mister President.
In response to Robot100
Robot100 wrote:
FIREking wrote:
Robot100 wrote:
I was woundering how u make a health bar appear over your player?

use overlays, and make a healthbar obj

I ment an example of code.
You mean you ment a snippet. He told you how. Look up overlays. Try something like this to start :
mob
var
hp
max_hp
obj/HealthBar
New()
..()
HealthBar = new/obj()
HealthBar.icon = 'yourhealthbariconher.dmi'
proc
SetHealthIconState()
var/state
switch(round(hp/max_hp)*100)
if(0) state = "0"
if(1 to 10) state = "10"
if(11 to 20) state = "20"
if(21 to 30) state = "30"
if(31 to 40) state = "40"
if(41 to 50) state = "50"
if(51 to 60) state = "60"
if(61 to 70) state = "70"
if(71 to 80) state = "80"
if(81 to 90) state = "90"
if(91 to 100) state = "100"
HealthBar.icon_state = state

Now look up overlays and make an icon with each of the states shown above.
In response to Vortezz
Vortezz wrote:
Robot100 wrote:
Vortezz wrote:
Robot100 wrote:
FIREking wrote:
Robot100 wrote:
I was woundering how u make a health bar appear over your player?

use overlays, and make a healthbar obj

I ment an example of code.

He "ment" use overlays, and make a healthbar obj, Green Lime.

grrrrrrrr
so what then How am I making the obj bar hold my health?
how I make it go over me. new /obj/healthbar(locate(usr.x,usr.y + 1,usr.z))

I answered this, but then you were rude to me.

So I deleted it.

Happy Birthday, Mister President.

Some people just arent greatful, and demand you code this for them instantly, sad.Seeing it more and more on boards too :(

Alathon
In response to Alathon
Alathon wrote:
Vortezz wrote:
Robot100 wrote:
Vortezz wrote:
Robot100 wrote:
FIREking wrote:
Robot100 wrote:
I was woundering how u make a health bar appear over your player?

use overlays, and make a healthbar obj

I ment an example of code.

He "ment" use overlays, and make a healthbar obj, Green Lime.

grrrrrrrr
so what then How am I making the obj bar hold my health?
how I make it go over me. new /obj/healthbar(locate(usr.x,usr.y + 1,usr.z))

I answered this, but then you were rude to me.

So I deleted it.

Happy Birthday, Mister President.

Some people just arent greatful, and demand you code this for them instantly, sad.Seeing it more and more on boards too :(

Alathon

On top of that, spamming a friendly chat room with...

"U R GAY"

Over and over on size 72 font isn't fun.
In response to Vortezz
Vortezz wrote:
Alathon wrote:
Vortezz wrote:
Robot100 wrote:
Vortezz wrote:
Robot100 wrote:
FIREking wrote:
Robot100 wrote:
I was woundering how u make a health bar appear over your player?

use overlays, and make a healthbar obj

I ment an example of code.

He "ment" use overlays, and make a healthbar obj, Green Lime.

grrrrrrrr
so what then How am I making the obj bar hold my health?
how I make it go over me. new /obj/healthbar(locate(usr.x,usr.y + 1,usr.z))

I answered this, but then you were rude to me.

So I deleted it.

Happy Birthday, Mister President.

Some people just arent greatful, and demand you code this for them instantly, sad.Seeing it more and more on boards too :(

Alathon

On top of that, spamming a friendly chat room with...

"U R GAY"

Over and over on size 72 font isn't fun.

Yah, god. Never, ever, ever join an everquest chat room in mIRC when its down. There are 100 people in 1 room, and there are 10 people spamming Porn Stories and giving links to porn sites there. I think I added 60 people to blocked in 20 minutes heh. Anyways, anyone tries that in my game and its instaban.