Author Topic: Scroll View Credits  (Read 3704 times)

GroovyGray

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Scroll View Credits
« on: April 21, 2014, 09:48:51 PM »
I am trying to create an auto-scrolling credits scene, where you can also drag up and down the scrollview as you see in so many games. So far everything is working great except for one issue. I am tweening the ScrollView itself, and the tween pauses momentarily whenever a touch is detected. Problem is, the clipping area moves along with the scrollview, and I end up not being able to scroll back up the list.

Should I be moving something other that the scrollview? Is there any way to keep the scrollview from moving? Anyone know a better way of doing this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll View Credits
« Reply #1 on: April 22, 2014, 04:53:22 AM »
I would advise you to do it like AoW3 -- create a scroll view, and slowly animate the scroll bar's value so that it scrolls it. Even without the scroll bar you can do it by adjusting UIPanel's clipOffset gradually.

I am not entirely sure what you mean by pausing on a touch. No collider = no touch responses. Scroll view dragging isn't done by the scroll view. It's done by UIDragScrollView, which is a separate script attached to one or more colliders.

GroovyGray

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Scroll View Credits
« Reply #2 on: April 22, 2014, 10:32:55 AM »
Thanks Aren! Animating the scroll bar value works great.