Hello everyone! I’m a newbie.
I am attempting to run the code from this tutorial.
http://code.tutsplus.com/tutorials/corona-sdk-build-a-concentration-puzzle-game–mobile-20353
When I launch main.lua with corona app simulator I get the following errors.
File: main.lua line:78 ERROR: table expected. If this is a function call, you might have used '.' instead of ':' stack traceback: [C]: in function 'newGroup' main.lua:78: in function 'Main' main.lua:197: in main chunk
Line 78 is this:
titleView = display.newGroup(title, playBtn, creditsBtn)
and it’s part of this function:
function Main() title = display.newImage('title.png') playBtn = display.newImage('playBtn.png', 130, 248) creditsBtn = display.newImage('creditsBtn.png', 125, 316) titleView = display.newGroup(title, playBtn, creditsBtn) startButtonListeners('add') end
You can download the code from this tutorial, which looks pretty useful, from the download link on the site here.
http://cdn.tutsplus.com/mobile/uploads/2013/10/source.zip
Then you should be able to run it and, hopefully, crash like I crash!
Thanks for any help! I think I can learn a lot from this one if I can get it to run smoothly.