Author Topic: Unit Health Bar  (Read 3517 times)

johnessy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
Unit Health Bar
« on: August 31, 2012, 07:00:13 AM »
This has probably been asked a million times and infact i seen a post about it a while ago. We have a 3D space game and need to get a health bar above the enemy unit. Obviously this need to follow the unit and scale so that it is the same universal size.

Any help would be greatly appreciated.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unit Health Bar
« Reply #1 on: August 31, 2012, 02:18:09 PM »
Space Game Starter Kit does just that, and in space to boot. UI items follow 3D objects and scale as you get closer to them. Another version is in the HUDText -- without the scaling, but the idea is the same. Convert coordinates from screen space of one camera to screen space of another camera.