Home Games WIP Examples User Dir Affiliates Forums IRC FAQ Rules Terms Register

Username:
Password:
Multiple Health
Multiple Health Tutorial and Example Im sure you people have seen another multiple helath tutorial but what I saw from it was poorly down. I couldn't see clearly what it was what so I wanted to clear stuff up. If you would like to see the example please click the link below: Multiple Health Example Use 1 and 2 to decrease both healthbars. Here is the tutorial: Ok now let's say you want it to follow the view right? so you would do this:
Code
draw_healthbar(view_xview+(#),view_yview+(#),view_xview+(#),view_yview+(#))
But you need more then that you also have to assign which variable you are using for the health bar. Remember the healthbar will go from 0-100, so you must limit the variable from going above 100 and below 0. So this is the next step:
Code
draw_healthbar(view_xview+(#),view_yview+(#),view_xview+(#),view_yview+(#),variable)
You're still not done yet, you have to assign colours for what the health bar will look like. Next this is what you should have
Code
draw_healthbar(view_xview+(#),view_yview+(#),view_xview+(#),view_yview+(#),variable,c_colour,c_colour,c_colour)
These will change from colour to colour. Now this is just extras like borders for the health bar and if back colour is true. This is the next step:
Code
draw_healthbar(view_xview+(#),view_yview+(#),view_xview+(#),view_yview+(#),variable,c_colour,c_colour,c_colour,(0-3),true/false,true/false)
Now this is pretty much how you make a healthbar!

DOWNLOAD NOW
Information
Language:
Author:
Date:
Downloads:
Comments:
Rating:
GM 6
SunTzus
Dec 20, 2006
146
9
n/a (1 more votes required)

not bad 8/10
#1 Posted by Mat on December 21, 2006 at 03:29 am

yay
#2 Posted by Pico on December 21, 2006 at 01:03 pm

Well anysuggestions for it? Should I do something else 4 it?
#3 Posted by SunTzus on December 23, 2006 at 11:10 am

Hello anyone here?
#4 Posted by SunTzus on December 25, 2006 at 12:04 pm

Im sorry but is anyone here?
#5 Posted by SunTzus on January 27, 2007 at 12:15 pm


no
#6 Posted by gtvg on January 31, 2007 at 05:41 pm

Pish, lawl
#7 Posted by SunTzus on February 20, 2007 at 08:04 pm

This isn't really an example.Drawing multiple health bars?Really now,that isn't that spectacular.Most of it is DnD anyways If you wanted to somehow improve this for some reason,make it so you can increase the health also
#8 Posted by s on April 28, 2007 at 03:44 pm

like the other ones it dont - in % 0-100, if you can get more?
#9 Posted by vrkiller on February 11, 2008 at 03:45 pm
Anyways...
a topic for GUITARISTS
ASDF pre-alpha
I'm an Attention Whore
Rock Paper Scissors Xtreme
My birthday
GARGOYLE RANCHING SUPERTIME
sprite adventures
Stage 1-2 Layout complete + Graphical
Revival
Ninja Test with Extra Ninja!
64mural
Bloop bloop
I am...Vez?
You call that Erotica?! You Red Team
Guests: 18
MMORPGguy11:06
Polystyrene Man11:05
Zarniwooop11:01
 Juju11:01
DesertFox11:00
Lapixx10:58
DFortun8110:58
Cesque10:57