So I’ve tried all of the codes posted so far and variations of them and I keep getting the same error. I am stumped. I can’t figure out what is in the game.lua scene that is causing the problem.
Try adding some print statements throughout your code to try and get a better idea of what is causing the error.
-Saer
Yea man, you might want to start troubleshooting from the beginning. I use Storyboard in all my projects and I don’t have a problem. Start with just progressing from scene to scene (denoting movement by terminal print statements); then start adding display objects to the “group” display group/
So, I found this as I have just started with Corona SDK today and had the same issue. After commenting a load of stuff out I realised it was because I had scene.addEventListener(… blah blah blah
I should have had scene:addEventListener(… blah blah blah note the ‘:’ instead of the ‘.’
I’ve just come from a big Java binge and Python is my regular language, so that was really hidden for me. Probably obvious to you guys.
I notice that you have the same thing in your code though, OP.
EDIT:
HA, immediately after fixing this I got another (separate) error, with the much more useful message:
ERROR: table expected. If this is a function call, you might have used ‘.’ instead of ‘:’
Thanks Corona… thanks a lot.
So, I found this as I have just started with Corona SDK today and had the same issue. After commenting a load of stuff out I realised it was because I had scene.addEventListener(… blah blah blah
I should have had scene:addEventListener(… blah blah blah note the ‘:’ instead of the ‘.’
I’ve just come from a big Java binge and Python is my regular language, so that was really hidden for me. Probably obvious to you guys.
I notice that you have the same thing in your code though, OP.
EDIT:
HA, immediately after fixing this I got another (separate) error, with the much more useful message:
ERROR: table expected. If this is a function call, you might have used ‘.’ instead of ‘:’
Thanks Corona… thanks a lot.