Can't find the error!

I can’t find the erroe…helpppp me please!!

  module(..., package.seeall)       function new() local localGroup = display.newGroup()   local bg = display.newImage("bg.png") localGroup:insert(bg)   local text = display.newText("LEVELS:", 0, 0, "Arial", 100) text.x = W/2 text:setTextColor(0,0,0) localGroup:insert(text)       local tasto1 = display.newImage("button1.png" ) tasto1.x = W/2 tasto1.y = 180 tasto1.scene = "level1" localGroup:insert(tasto1) local tasto1Text = display.newText("Level 1",0 ,0 , "Arial", 50) tasto1Text:setTextColor(0,0,0 ) tasto1Text.x = tasto1.x tasto1Text.y = tasto1.y   local tasto2 = display.newImage("button1.png") tasto2.x = tasto1.x  tasto2.y = tasto1.y+ 110 tasto2.scene = "level2" buttons:insert(tasto2) local tasto2Text = display.newText("Level 2", 0, 0, "Arial", 50) tasto2Text.x = tasto2.x tasto2Text.y = tasto2.y   local tasto3 = display.newImage("button1.png") tasto3.x = tasto1.x  tasto3.y = tasto2.y+ 110 tasto3.scene = "level3" localGroup:insert(tasto3) local tasto3Text = display.newText("Level 3", 0, 0, "Arial", 50) tasto3Text.x = tasto3.x tasto3Text.y = tasto3.y   local tasto4 = display.newImage("button1.png") tasto4.x = tasto1.x  tasto4.y = tasto3.y+ 110 tasto4.scene = "level4" localGroup:insert(tasto4) local tasto4Text = display.newText("Level 4", 0, 0, "Arial", 50) tasto4Text.x = tasto4.x tasto4Text.y = tasto4.y   local tasto5 = display.newImage("button1.png") tasto5.x = tasto1.x  tasto5.y = tasto4.y+ 110 tasto5.scene = "level5" localGroup:insert(tasto5) local tasto5Text = display.newText("Level 5", 0, 0, "Arial", 50) tasto5Text.x = tasto5.x tasto5Text.y = tasto5.y   local tasto6 = display.newImage("button1.png") tasto6.x = tasto1.x  tasto6.y = tasto5.y+ 110 tasto6.scene = "level6" localGroup:insert(tasto6) local tasto6Text = display.newText("Level 6", 0, 0, "Arial", 50) tasto6Text.x = tasto6.x tasto6Text.y = tasto6.y   local tasto7 = display.newImage("button1.png") tasto7.x = tasto1.x  tasto7.y = tasto6.y+ 110 tasto7.scene = "level7" localGroup:insert(tasto7) local tasto7Text = display.newText("Level 7", 0, 0, "Arial", 50) tasto7Text.x = tasto7.x tasto7Text.y = tasto7.y   local tasto8 = display.newImage("button1.png") tasto8.x = tasto1.x  tasto8.y = tasto7.y+ 110 tasto8.scene = "level8" localGroup:insert(tasto8) local tasto8Text = display.newText("Level 8", 0, 0, "Arial", 50) tasto8Text.x = tasto8.x tasto8Text.y = tasto8.y               function changeScene(e) if e.phase == "ended" then director:changeScene(e.target.scene) end end       tasto1:addEventListener("touch", changeScene) tasto2:addEventListener("touch", changeScene) tasto3:addEventListener("touch", changeScene) tasto4:addEventListener("touch", changeScene) tasto5:addEventListener("touch", changeScene) tasto6:addEventListener("touch", changeScene) tasto7:addEventListener("touch", changeScene) tasto8:addEventListener("touch", changeScene)       return localGroup   end  

We’d need to see an error report, of course, to begin helping. :slight_smile:

Also, I notice in your other posts that you’re using this older, deprecated Lua module notation:

[lua]

module(…, package.seeall)

[/lua]

I suggest that you learn the modern, cleaner way to require modules. This is a rather foundational topic, so it’s best that you study it now and get comfortable with it. This tutorial should help get you started:

http://www.coronalabs.com/blog/2012/08/28/how-external-modules-work-in-corona/

Brent

As already mentioned, you have to tell us what the error is if you are asking us to find it.

You are adding tastos2 to the “buttons” group, but the others are added to localGroup

We’d need to see an error report, of course, to begin helping. :slight_smile:

Also, I notice in your other posts that you’re using this older, deprecated Lua module notation:

[lua]

module(…, package.seeall)

[/lua]

I suggest that you learn the modern, cleaner way to require modules. This is a rather foundational topic, so it’s best that you study it now and get comfortable with it. This tutorial should help get you started:

http://www.coronalabs.com/blog/2012/08/28/how-external-modules-work-in-corona/

Brent

As already mentioned, you have to tell us what the error is if you are asking us to find it.

You are adding tastos2 to the “buttons” group, but the others are added to localGroup