Author Topic: Scrolling Status Bar  (Read 4374 times)

optimisticmonkey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 15
    • View Profile
Scrolling Status Bar
« on: December 15, 2013, 03:43:40 PM »
I am trying to implement a scrolling message along the bottom of the screen.

I have used Anchor and Stretch to position the UILabel on the bottom of the screen.

But when I add the TweenPosition it moves to the center of the screen.

I tried adding the TweenPosition in the start method, but the same problem persists - I don't think the anchor and stretch scripts have run yet?

What is the best approach to get a scrolling message bar across the bottom of the screen?

Thanks in advance for any help

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scrolling Status Bar
« Reply #1 on: December 15, 2013, 04:30:26 PM »
Anchor and stretch components have been deprecated in the last version (3.0.7).

Either way though, you can't tween an anchored object. Anchor a game object, make your label a child of it, tween the child.

optimisticmonkey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 15
    • View Profile
Re: Scrolling Status Bar
« Reply #2 on: December 16, 2013, 10:03:46 AM »
Thanks Aren - That worked perfectly!