Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
hit point bars; how to?
Topic Started: Jul 31 2006, 11:23 PM (164 Views)
migileke
Unregistered

Here I am again! With yet another question: hitpoint bars. How do I do them?
I use a 256x32 bar, and there's no way I will design 256 images for every position. Therefor I'll use maybe one image per 10 pixels or so. But that's not my question. I've got 2 question's actually:

- are there basic drawing functions that could let coding do the job? (I'm a bad spriter but a good coder). Can I use gm6 drawing functions like draw_line()?
- If the above doesn't work, please explain me how to make sub-sprites.
Quote Post Goto Top
 
migileke
Unregistered

Oh, nevermind, I think I got it ^_^ . If anyone has the same problem, use this:

Make 2 textures: one totally green, one totally red. Then use DrawTexEx twice, for the first (green), draw the part from 0,0 to percent_damage,height and for the other draw the part from percent_damage,0 to width,height. I'm sorry if you didn't understand.
Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
It's alot of questions you have on such short notice. As for this one I think you could have solved by looking in the help file before posting.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply