Hello. When I try to run this: ( http://pastebin.com/a3vDB7PN ) on my android device I get the Runtime Error: 'attempt to index local ‘menuBackground’ (a nil value) which I find very weird since menuBackground is defined in the code. ( The runtime Error is @ line 96, and i define it @ line 94) Can anyone help me figure out what is wrong here? =)
So, it looks as
local menuBackground = display.newImage(“menuBackground.png”)
returns a nil value, but I find this very weird? Shouldnt this return the png image? The image exists and is located in the same folder as main.lua. it is also written exactly correct.
And it works great in the simulator.