| 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: |
| hit point bars; how to? | |
|---|---|
| Tweet Topic Started: Jul 31 2006, 11:23 PM (164 Views) | |
| migileke | Jul 31 2006, 11:23 PM Post #1 |
|
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. |
|
|
| migileke | Aug 1 2006, 11:43 AM Post #2 |
|
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. |
|
|
| Despellanion | Aug 1 2006, 01:00 PM Post #3 |
|
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. |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





. If anyone has the same problem, use this:

![]](http://z1.ifrm.com/static/1/pip_r.png)

10:34 AM Jul 11