![]() |
Kuhwestyon!
ok like u know how hp bars n stuff like are in like straight like lines is it possible to have like a circle and it like goes around like until it gets empty like.. um... in Super Mario 64 in a sense.. but more specefic instead of those little buttons.. like O but it gets empty by like going to 1/4 a circle.. and stuff.. like the center point and a line is pointing ou tand like stuff and it can be empty at 0 hp and stuff and at 50% it is a half circle n stuff.. like at 75%hp its like.. . YEA a pie graph it looks like a pie graph! yea.. and stuff. does anyone know what im tlaking about if you need me to draw a picture I will but I was wondering if thats possible..
|
1 Attachment(s)
ok, heres pic
|
Yoda Stories HP thing?
You'll be wanting to use some trig. |
you only work with 4 Hp ?
mm... what if a player gets more then 4 Hp ? i rather draw 2 images over eachother 1 thats is an empty image of an HP bar. and 1 that shows the red HP stuff... then use changeimgpart. ;) *sorry for my bad english im dutch XD* |
Quote:
|
you cant make a circle draw in a diagnol line with changeimgpart,
unless u want extreme lag...... |
no, not 4hp.. percentage. :)
|
Quote:
|
Like I said.
It's a simple issue of trigonometry and showpoly. |
Quote:
|
Quote:
What, clumsy and inaccurate PNGs? |
Quote:
|
Quote:
|
1 Attachment(s)
Clever idea kai, but it didn't seem like anybody quite understood so i drew a little picture of what i intrepreted it as. It'd be done with greater detail of course but i wanted to show the lines.
|
The easiest thing to do would be to make a sprite sheet of all the percentages that you would use, then change the index of the sprite according to the players' hearts. You could put alot of detail into the image displayed then, but it would end up being a pretty big file...
|
1 Attachment(s)
I believe the easiest way would be to use arrays and showpoly. *becouse i've already done that with arrays and showpoly.
It doesn't take long if you understand showpoly and some trig. |
Quote:
|
Quote:
Reasons: #1 The number of poly's is user adjustable, or will be. #2 It only draws when there's a change. #3 It only calculates the positions once. |
Quote:
|
Just use the 100% and the 0% and use changeimgvis =p ... jezzz common sence
|
Quote:
|
Quote:
Yeah, I guess your right about the graal having to keep drawing them part. :( Doesn't really matter how many times the script draws them. Graal draws them constantly anyway. |
well my kuwestyon was answered. So I happy now :)
|
Quote:
|
Quote:
or is it to? |
| All times are GMT +2. The time now is 08:28 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.