| GM Health Bar | |
|---|---|
| Topic Started: Aug 17 2008, 08:27 PM (99 Views) | |
| Faybro | Aug 17 2008, 08:27 PM Post #1 |
|
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. | |
![]() |
|
| Cael | Aug 18 2008, 05:16 PM Post #2 |
|
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 | |
![]() |
|
| Faybro | Aug 18 2008, 05:18 PM Post #3 |
|
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. | |
![]() |
|
| Cael | Aug 18 2008, 08:32 PM Post #4 |
|
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 | |
![]() |
|
| Faybro | Aug 18 2008, 09:00 PM Post #5 |
|
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. | |
![]() |
|
| Cael | Aug 18 2008, 09:51 PM Post #6 |
|
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 | |
![]() |
|
| Faybro | Aug 19 2008, 11:45 AM Post #7 |
|
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. | |
![]() |
|
| Cael | Aug 25 2008, 06:41 PM Post #8 |
|
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 | |
![]() |
|
| Faybro | Aug 25 2008, 09:21 PM Post #9 |
|
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. | |
![]() |
|
| Cael | Aug 26 2008, 12:45 PM Post #10 |
|
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 | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Computer Programming · Next Topic » |







5:31 PM Dec 1