Try replacing menu.lua with this
** EDIT** forgot to end for loop
[code]
local storyboard = require “storyboard”
local scene = storyboard.newScene()
local widget = require “widget”
display.setStatusBar( display.HiddenStatusBar )
local button, background, ball, white, myText, myText2
local buttons ={ scenes ={ “sp”,“mp”,“pm”,“tbm”,“s”},
images={{“single player.png”,“single player2.png”},
{“multiplayer.png”,“multiplayer2.png”},
{“pro mode.png”,“pro mode2.png”},
{“two ball mode.png”,“two ball mode2.png”},
{“shop.png”,“shop2.png”}}}
local function onButtonRelease( event )
local id = event.target.id
storyboard.gotoScene( buttons[id] )
end
function scene:createScene( event )
local screenGroup = self.view
background = display.newImage ( “SkySoccer Grass.jpg” )
ball = display.newImage( “SkySoccer Ball.gif” )
ball.x = display.contentWidth / 2
screenGroup:insert( ball )
white = display.newImage( “witteachtergrond.png” )
white.x = display.contentWidth / 1.3
white.y = display.contentWidth / 25
screenGroup:insert( white )
myText = display.newText( “SkySoccer”, 0, 0, native.systemFont, 50 )
myText.x = display.contentCenterX
myText.y = display.contentWidth / 4.5
myText:setTextColor( 255, 0, 0 )
screenGroup:insert( myText )
myText2 = display.newText( “BroekieNetwork”, 0, 0, native.systemFont, 20 )
myText2.x = display.contentWidth / 1.3
myText2.y = display.contentWidth / 25
myText2:setTextColor( 0, 0, 255 )
screenGroup:insert( myText2 )
For a = 1, #buttons.scenes do
button = widget.newButton({
id = a,
left = 100,
top = 150,
default = buttons.images[a][1],
over = buttons.images[a][2],
onEvent = onButtonRelease
})
screenGroup:insert( button )
end
end
scene:addEventListener( “createScene”, scene )
return scene [import]uid: 7911 topic_id: 34070 reply_id: 135607[/import]