Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Dbc: Lifebar Help

Author
Message
XxRaVeNxX
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: United States
Posted: 6th Dec 2004 09:05

That code works and basically what it is, is a 2d box that decreases and increases its length as the characters Hp changes. Right now if the character has 200 hp and loses 20 the bar jumps down to 180, Instead I want to have a sliding effect where when you lose say 20 it moves down in increments of one sort of fast then when you get closer to 180 it slows down.

Sliding Speed
100%-51% Fastest
50%-21% Fast
20%-0% Normal

How would I do this?

Signing Out...
Just Blaze:// Studios

Attached is a picture of the HUD

Attachments

Login to view attachments
Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 6th Dec 2004 20:52
Search the CodeBase; That's all I can say!

Ali @ Nukesoft



N U K E S O F T :: Explosive Games :: http://www.geocities.com/nukesoft0
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 7th Dec 2004 03:10
Use a variable to hold the value for where you want the bar to be, then another variable for where the bar actually is, and use curvevalue to bring it close to the target. This should work:



Xander Moser - Bolt Software - Firewall

Login to post a reply

Server time is: 2024-11-27 16:41:29
Your offset time is: 2024-11-27 16:41:29