Welcome Guest [Log In] [Register]
Add Reply
GM Health Bar
Topic Started: Aug 17 2008, 08:27 PM (99 Views)
Faybro
Member Avatar
Fake Member (Lv. 10)
How do I use the health bar in GM without coding?

I have it set up Event Other Game Start on the character (and he is in the first room lol)
Start of a block
Set health to 100
Draw the health bar
Draw the health bar settings:
x1: 2
y1: 2
x2: 200
y2: 30
Back Color Black
Bar Color Yellow


Maybe I did coordinates wrong? Or I should have Draw Health Braw come first?
Go to 5 Minutes of boredom! Not only is it a good site, it also has links to my other various sites:
Star Sense Games - Free, home made games!
8 Bit Zebez, a collection of Web Comics!
<4th Tag>, my site where I experiment with HTML!
The Gamer War, a site to discuss the latest Generation of Games!
The Metroid Medium a Metroid Forum!
The Crossing Cafe, a forum for Animal Crossing!
All found at 5 Minutes of boredom!

HEY!
I have a SSBB Tournament that will work.
Why?
2 things:
PRIZES, and, if you aren't active, you get booted.

Find it here.
Offline Profile Quote Post Goto Top
 
Cael
Member Avatar
The Fair One

All draw functions need to be in the draw event.
"You know, we've been having these conversations for weeks now, and I don't even know your name. You do have names, right? Let me guess... Steve?" - Colonel Shephard
"I am your death. That is all you need to know." - Wraith Captive
"I prefer Steve." - Colonel Shephard
Offline Profile Quote Post Goto Top
 
Faybro
Member Avatar
Fake Member (Lv. 10)
EDIT: Nevermind! I had the health bar object not visible, lol.

How do I make it stay where it is while I move across the room?
Edited by Faybro, Aug 18 2008, 05:24 PM.
Go to 5 Minutes of boredom! Not only is it a good site, it also has links to my other various sites:
Star Sense Games - Free, home made games!
8 Bit Zebez, a collection of Web Comics!
<4th Tag>, my site where I experiment with HTML!
The Gamer War, a site to discuss the latest Generation of Games!
The Metroid Medium a Metroid Forum!
The Crossing Cafe, a forum for Animal Crossing!
All found at 5 Minutes of boredom!

HEY!
I have a SSBB Tournament that will work.
Why?
2 things:
PRIZES, and, if you aren't active, you get booted.

Find it here.
Offline Profile Quote Post Goto Top
 
Cael
Member Avatar
The Fair One

Do you have a moving view? In that case, you need code. If not, just give it a static x and y value.
"You know, we've been having these conversations for weeks now, and I don't even know your name. You do have names, right? Let me guess... Steve?" - Colonel Shephard
"I am your death. That is all you need to know." - Wraith Captive
"I prefer Steve." - Colonel Shephard
Offline Profile Quote Post Goto Top
 
Faybro
Member Avatar
Fake Member (Lv. 10)
I do have a moving view. I guess I could do minor code.
Go to 5 Minutes of boredom! Not only is it a good site, it also has links to my other various sites:
Star Sense Games - Free, home made games!
8 Bit Zebez, a collection of Web Comics!
<4th Tag>, my site where I experiment with HTML!
The Gamer War, a site to discuss the latest Generation of Games!
The Metroid Medium a Metroid Forum!
The Crossing Cafe, a forum for Animal Crossing!
All found at 5 Minutes of boredom!

HEY!
I have a SSBB Tournament that will work.
Why?
2 things:
PRIZES, and, if you aren't active, you get booted.

Find it here.
Offline Profile Quote Post Goto Top
 
Cael
Member Avatar
The Fair One

Just use the view x and y coordinates, then add a small number to offset it a little.
"You know, we've been having these conversations for weeks now, and I don't even know your name. You do have names, right? Let me guess... Steve?" - Colonel Shephard
"I am your death. That is all you need to know." - Wraith Captive
"I prefer Steve." - Colonel Shephard
Offline Profile Quote Post Goto Top
 
Faybro
Member Avatar
Fake Member (Lv. 10)
erm... Wha? I mean as in I need the code itself and how to implement it.
Go to 5 Minutes of boredom! Not only is it a good site, it also has links to my other various sites:
Star Sense Games - Free, home made games!
8 Bit Zebez, a collection of Web Comics!
<4th Tag>, my site where I experiment with HTML!
The Gamer War, a site to discuss the latest Generation of Games!
The Metroid Medium a Metroid Forum!
The Crossing Cafe, a forum for Animal Crossing!
All found at 5 Minutes of boredom!

HEY!
I have a SSBB Tournament that will work.
Why?
2 things:
PRIZES, and, if you aren't active, you get booted.

Find it here.
Offline Profile Quote Post Goto Top
 
Cael
Member Avatar
The Fair One

I don't know the actual variables for the view, but I think the code is something like...

draw_healthbar(view_x[0]+2,view_y[0]+2,view_x[0]+102,view_y[0]+102,health,c_green,c_green,c_red,c_black,0,1,1)

I don't actually have GM in front of me, so I'm guessing that that's what the code is.
"You know, we've been having these conversations for weeks now, and I don't even know your name. You do have names, right? Let me guess... Steve?" - Colonel Shephard
"I am your death. That is all you need to know." - Wraith Captive
"I prefer Steve." - Colonel Shephard
Offline Profile Quote Post Goto Top
 
Faybro
Member Avatar
Fake Member (Lv. 10)
... But what do I use to actually put the code in? And what would I do to make yellow over black?
Go to 5 Minutes of boredom! Not only is it a good site, it also has links to my other various sites:
Star Sense Games - Free, home made games!
8 Bit Zebez, a collection of Web Comics!
<4th Tag>, my site where I experiment with HTML!
The Gamer War, a site to discuss the latest Generation of Games!
The Metroid Medium a Metroid Forum!
The Crossing Cafe, a forum for Animal Crossing!
All found at 5 Minutes of boredom!

HEY!
I have a SSBB Tournament that will work.
Why?
2 things:
PRIZES, and, if you aren't active, you get booted.

Find it here.
Offline Profile Quote Post Goto Top
 
Cael
Member Avatar
The Fair One

T_T You don't read very well, do you? All draw functions go in the draw event. To do yellow over black, replace c_green with c_yellow, and c_red with c_black.
"You know, we've been having these conversations for weeks now, and I don't even know your name. You do have names, right? Let me guess... Steve?" - Colonel Shephard
"I am your death. That is all you need to know." - Wraith Captive
"I prefer Steve." - Colonel Shephard
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Computer Programming · Next Topic »
Add Reply