how to make a tableview that auto lock, certain objects (like in level select in most ios games)

hi,

i’m making a table view, and list view in my app but, the problem is i want to make like a level select screen ? where you can move the screen a bit, and then it auto moves it to the currect position , you understand ?

like in angry birds (or any other game) in the level select where you move it a bit and then lift your finger, and it continues to move just until the excect position to view the levels perfactly on screen.

please ? do you understand ? how can you do it with corona ?

Hi @Mars Interactive,

Yes, you can do this in Corona (in fact, I did this in a game), but I don’t suggest TableView as the method. If you’re trying to mimic the Angry Birds level selection screens, this is better accomplished using a “slide view” code base, where each page is a series of tiles/buttons that you can tap on.

You may want to view the sample project in Corona here:

CoronaSDK > SampleCode > Interface > SlideView

Or, you can look for sample modules in the Code Exchange:

http://developer.coronalabs.com/code/

Best regards,

Brent

Funny, I am trying to do this exact thing.  I am using a SCROLL view widget though. Are they the same thing with widgets 2.0?

I found some good code that does “Lock” to items you have in a scroll view, but it locks the moment you lift off your finger, I would like to find a way to make it less “sticky” and have it just stop at the next item in the scroll view when the finger is lifted.

Here is what I found: http://forums.coronalabs.com/topic/34357-scrolltoposition-in-widgets-20/#entry189654

Also here is a video of what I believe we are trying to accomplish, this was made in Game Salad: http://youtu.be/mMggXxkDJvo?t=56s

Anyone found a way to do what is shown in that video?

Hi @Mars Interactive,

Yes, you can do this in Corona (in fact, I did this in a game), but I don’t suggest TableView as the method. If you’re trying to mimic the Angry Birds level selection screens, this is better accomplished using a “slide view” code base, where each page is a series of tiles/buttons that you can tap on.

You may want to view the sample project in Corona here:

CoronaSDK > SampleCode > Interface > SlideView

Or, you can look for sample modules in the Code Exchange:

http://developer.coronalabs.com/code/

Best regards,

Brent

Funny, I am trying to do this exact thing.  I am using a SCROLL view widget though. Are they the same thing with widgets 2.0?

I found some good code that does “Lock” to items you have in a scroll view, but it locks the moment you lift off your finger, I would like to find a way to make it less “sticky” and have it just stop at the next item in the scroll view when the finger is lifted.

Here is what I found: http://forums.coronalabs.com/topic/34357-scrolltoposition-in-widgets-20/#entry189654

Also here is a video of what I believe we are trying to accomplish, this was made in Game Salad: http://youtu.be/mMggXxkDJvo?t=56s

Anyone found a way to do what is shown in that video?