My game runs just like it does in the emulator on my iphone 5 but when I load it on an ipad 3 it works until I touch the player image (which is essentially a button)
I am getting this error on the Xcode console:
<Warning>: Touch event began on: thisPlayer
<Warning>: Lua Runtime Error: lua_pcall failed with status: 2, error message is: ?:0: attempt to index field ‘?’ (a nil value)
The obvious thing about it is that it tried to index a nil field, but what I can’t figure out is why it works fine on my phone and my emulator. I’m not sure how to figure out what is wrong if it doesn’t fail on the emulator.
Any advice?
Thanks in advance