Scrolling menu

Help please make scrolling menu and it is impossible to do instead of shape upload your image, which after the transition will correctly respond

Sorry for the bad translation of my question

local composer = require( “composer” )

local widget = require( “widget” )

local scene = composer.newScene()

local function onButtonRelease( event )

composer.gotoScene( event.target.id:lower(), { effect=“fade”, time=300 } )

end

function scene:create( event )

local sceneGroup = self.view

composer.recycleOnSceneChange = true;

local sceneTitle = display.newText( sceneGroup, “Выберете уровень”, display.contentCenterX, 10, composer.getVariable( “appFont” ), 20 )

local menuButtons = { “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “11”, “12”, “13”, “14”, “15”, “16”, “17”, “18”  }

local rowNum = 0

for i = 1,#menuButtons do

rowNum = rowNum+1

local button = widget.newButton(

{

label = menuButtons[i],

id = menuButtons[i],

shape = “circle”,

radius = 20,

font = composer.getVariable( “appFont” ), 

fontSize = 16,

fillColor = { default={ 0.12,0.32,0.52,1 } ,over={ 0.132,0.352,0.572,1 } }, 

labelColor = { default={ 1,1,1,1 }, over={ 1,1,1,1 } }, 

onRelease = onButtonRelease

})

       mod = math.fmod(i, 2) 

          

      if (i*mod >= 1 ) then 

button.x = display.contentCenterX -50 

 

elseif (i*mod == 0) then  

button.x = display.contentCenterX + 50 

end

button.y = 65 + ((rowNum-1)*35) 

sceneGroup:insert( button ) 

end

end

–[[

function scene:touch(e)

if(e.phase == “began”) then

print(“click”);

elseif (e.phase == “moved”) then

scene.x = e.x;

scene.y = e.y;

print(“moved”);

elseif(e.phase == “ended”) then

print(“end”);

end

end

]]

–scene:addEventListener(“touch”, scene);

scene:addEventListener( “create”, scene ) 

scene:addEventListener( “destroy”, scene )

scene:addEventListener( “hide”, scene )

return scene

Hi @progermc,

This tutorial might help you with this:

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

Best regards,

Brent

Thank you so much. 

Hi @progermc,

This tutorial might help you with this:

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

Best regards,

Brent

Thank you so much.