Hello,
I’ve made some .png files and each is a number 0-9. I was trying to use Peach Pellen’s score tutorial because it allowed me to use my images. I’ve hit many errors and I’m really hoping you can help because Peach couldn’t find anything wrong but she did help as much as she could :). Here’s the link: http://techority.com/2011/01/26/how-to-add-a-score-to-your-iphone-app/
I dropped score.lua into my folder and puled the code from main.lua and I get errors. I’m posting the errors of the code. I tried it without changing anything and then started deleting code to figure it out.
/Desktop/Adam’s Apple – Fixed/L25.lua:41: attempt to call field ‘getInfo’ (a nil value)
and then I delete that line of code and then…
/Desktop/Adam’s Apple – Fixed/L25.lua:42: attempt to call field ‘init’ (a nil value)
and then I delete that line of code and then…
/Desktop/Adam’s Apple – Fixed/L25.lua:43: attempt to call field ‘setScore’ (a nil value)
So I’m getting a lot of errors and I don’t know why. I deleted the parts of the code to see if it was just one part but it wasn’t. Also, I didn’t modify anything in score.lua so it shouldn’t be a problem there.
I know it’s working for some people but I can’t for the life of me figure out why it’s not for me. Let me know if you need to see some of my code. I used all the code from main.lua and dropped the score.lua into my project folder [import]uid: 59140 topic_id: 20072 reply_id: 320072[/import]