![]() |
large status bar ammounts
i know the forumula for status bars, but they dont work if the current ammt goes over the pixel width, it doesnt work anymore.
anyone know how to fix it? |
I have a sample that someone gave me. Send me an IM on AIM and I can show you...
|
Re: large status bar ammounts
Quote:
|
I think he means like if its made for 3 hearts (and HP Bar) and they get 4 hearts or something. You just script it to check the number of hearts they have and have the bar be divided into smaller sections.
|
Quote:
|
hes so smart... :D
|
make sure when bars get to 0 that you make it so it wont try to show a width of 0 in a img part because then it will show a full bar :D
|
Quote:
|
no no no.....
like the bomy life system, is based on hp, but if the current ammount of hp goes over the pixel width, it will not show correctly, just the whole image, not the part. |
hmmm i think I understand if ure Pic is 100 Pixel and the HP 101 it's a problem hmmm I think u have 2 possibilities:
1. U can only have the same amount of hp as the pixel with or 2. if the amount of hp is bigger then the pixel with u just show it as full lifes example: 100 pixel 120 hp (this.hp for example) if(this.hp <=100){ normal use; } else { showimg .... changeimgpart index,x,y,int(100),14; } so it's not shown if u have more hp but u can't also see the full image... |
Quote:
*confused* :confused: :confused: :confused: |
ummm
1. max HP count = pixel width 2. if Hp is bigger just show the full bar and don't use your formular (Noone understands me *crying*) |
listen.
if the max hp is 200 and the pixel width is 100, it will get to 100 and still show the part, but then at 101, it will show the full bar, which is bad |
Quote:
|
someone doesnt pay attention to their math classes:rolleyes:
should be what xaviar said but u can also do (maxhp/currenthp)*maxwidth if ur maxwidth is diff. then 100 |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 01:35 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.