scrollView - setting position & making magnetic effect to centre level icon at centre?

Background:  Using a newScrollView to display a horizontal scrolling list of levels in a game.  So each level is effectively a rectangle with info on that level.

Q1 - How could I create a magnetic effect so as the game levels scroll across and the user releases his finger on the screen, that as a the scrolling stops it has a MAGNETIC type effect and stops with the closest level right in the centre?

Q2 - How to manually set the position of the levels within the scrollview?  (e.g. at start up want to set it to position so the next unplayed level is in the middle)

I think you might want to consider a tableView with each row containing one level. TableView would allow you to do all you need.

ok thanks - I’ll look into this

not sure the tableview solution will assist here as I have horizontal scrolling (posted a question here re tableview & horizontal configuration http://forums.coronalabs.com/topic/36775-tableview-horizontal-table-of-columns-as-opposed-to-rows/ )

Checkout my thread at http://forums.coronalabs.com/topic/34357-scrolltoposition-in-widgets-20/

will do - did you go down the scrollview path due to the horizontal issue with TableView then?

I think you might want to consider a tableView with each row containing one level. TableView would allow you to do all you need.

ok thanks - I’ll look into this

not sure the tableview solution will assist here as I have horizontal scrolling (posted a question here re tableview & horizontal configuration http://forums.coronalabs.com/topic/36775-tableview-horizontal-table-of-columns-as-opposed-to-rows/ )

Checkout my thread at http://forums.coronalabs.com/topic/34357-scrolltoposition-in-widgets-20/

will do - did you go down the scrollview path due to the horizontal issue with TableView then?