Author Topic: NGUI Hud Text UI Follow Script problem  (Read 1606 times)

rbattagline

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
NGUI Hud Text UI Follow Script problem
« on: May 30, 2014, 07:07:31 PM »
I have a health bar and an energy bar following a character, but the health bar is not perfectly following the character.  It will shift by a pixel or two.  The Energy bar doesn't have that problem, but from what I can tell I'm doing the exact same thing for the two bars.

Here's a link to a youtube video of the problem:
https://www.youtube.com/watch?v=CnP5DbR6u7o&feature=youtu.be

Any idea what the problem is?

Thanks,
Rick

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Hud Text UI Follow Script problem
« Reply #1 on: May 31, 2014, 12:43:19 PM »
Why not have only one UIFollowTarget script, with both health bars being children underneath?

rbattagline

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: NGUI Hud Text UI Follow Script problem
« Reply #2 on: May 31, 2014, 02:42:34 PM »
That seems to have fixed the issue.

Thanks