Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Changing in game play hp bars


dao
 Share

Recommended Posts

The current system Eclipse uses to draw the HP bars is just a rec. filled in with a color. Change it to use an image and the fill image over it.
Here's what the initial line looks like:

> ' draws the back bars
>         Call DD_BackBuffer.SetFillColor(RGB(200, 100, 100))
>         Call DD_BackBuffer.DrawBox(X, y - 32, X + 32, y - 36)
>
>         ' draws HP
>         Call DD_BackBuffer.SetFillColor(RGB(100, 200, 100))
>         Call DD_BackBuffer.DrawBox(X, y - 32, X + ((Player(Index).HP / 100) / (Player(Index).MaxHp / 100) * 32), y - 36)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...