scrollView like crossy road

How to make a scrollView like the cossy road character selection screen ?

https://www.youtube.com/watch?v=IO7iQ8DHneQ

img = {} local myGroup = display.newGroup() for i = 1,6 do img[i] = display.newRect(0,0,50,50) img[i].x = i\*70 img[i].y = 200 img[i]:setFillColor(0,0.5,0) myGroup:insert(img[i]) end local function scrollListener( event ) local phase = event.phase local direction = event.direction if "began" == phase then elseif "moved" == phase then --print( "Moved" ) elseif "ended" == phase then --print( "Ended" ) end if event.limitReached then if "up" == direction then print( "Reached Top Limit" ) elseif "down" == direction then print( "Reached Bottom Limit" ) elseif "left" == direction then print( "Reached Left Limit" ) elseif "right" == direction then print( "Reached Right Limit" ) end end return true end local widget = require( "widget" ) local scrollView = widget.newScrollView { left = 0, top = 0, width = display.contentWidth, height = display.contentHeight, leftPadding = 0, rightPadding = 100, id = "onBottom", horizontalScrollDisabled = false, verticalScrollDisabled = true, listener = scrollListener, } for a = myGroup.numChildren,1,-1 do scrollView:insert(img[a]) end

We did a tutorial on this a while back:

https://coronalabs.com/blog/2014/08/19/tutorial-building-a-sliding-menu/

Rob

We did a tutorial on this a while back:

https://coronalabs.com/blog/2014/08/19/tutorial-building-a-sliding-menu/

Rob