TGB/Behaviors/Fixed Position Health Bar

From TDN


Fixed Health Bar
Description:

Provides a graphical representation of the health of an object using the "Takes Damage" behavior. Allows the user to chose which edge of their chosen health bar graphic will remain in a fixed position.

"Top" will cause the image to shrink from the bottom while the top edge remains in place.

"Bottom" will cause the image to shrink from the top while the bottom edge remains in place.

"Left" will cause the image to shrink from the right while the left edge remains in place.

"Right" will cause the image to shrink from the left while the right edge remains in place.

"Center Horizonal" will cause the image to shrink from left and right edges, while center point remains in place.

"Center Vertical" will cause the image to shrink from top and bottom edges, while center point remains in place.

If the health bar is mounted on an object, "Left" and "Right" will function as "Center Horizontal", while "Top" and "Bottom" will function as "Center Vertical".


 Download:

Fixed Health Bar

Download the zip file and drag it onto the TGB window to add it to your project.



Back to Behavior Listing