Information

Author:
    SunTzus
Rating:
    N/A
(1 more votes required)
Type:
    Example
Language:
    GM 6
Reviews:
    None
Submitted:
    December 20, 2006
Dev - DB/form (refering to updated - check code)
Download:
    DOWNLOAD (378)
Dev - make AJAX
Screenshots (0)
Dev - Also, on form submission, use GD to resize the image as a new thumbnail file
There were no screenshots provided
Dev - In the submission form, you can now upload a banner image
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!


Target platforms:



This game needs 1 more vote to be considered for the front page!
Help out the community and rate this game!
not bad 8/10
Posted by Mat December 21, 2006 3:29 - 10.7 years ago
| [#1]

yay
Posted by Pico December 21, 2006 13:03 - 10.7 years ago
| [#2]

Well anysuggestions for it?

Should I do something else 4 it?
Posted by SunTzus December 23, 2006 11:10 - 10.7 years ago
| [#3]

Hello anyone here?
Posted by SunTzus December 25, 2006 12:04 - 10.7 years ago
| [#4]

Im sorry but is anyone here?
Posted by SunTzus January 27, 2007 12:15 - 10.6 years ago
| [#5]

no
Posted by gtvg January 31, 2007 17:41 - 10.6 years ago
| [#6]

Pish, lawl
Posted by SunTzus February 20, 2007 20:04 - 10.5 years ago
| [#7]

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
Posted by s April 28, 2007 15:44 - 10.3 years ago
| [#8]

like the other ones it dont - in % 0-100, if you can get more?
Posted by vrkiller February 11, 2008 15:45 - 9.5 years ago
| [#9]

Recent Activity
 
Active Users (0)