Going through the Corona in 5 minutes everything has been working fine except for now that Ive gotten to Visual objects. I’ve tried typing in the code it gives and I’ve tried to copy and paste it into my Sublime editor but it still pops up with this error message:
File: main.lua
Line: 21
Attempt to index local ‘sky’ (a nil value)
stack traceback:
main.lua:21: in main chunk
Not sure what the problem is but this is what I’ve been trying to type and/or copy paste in:
local sky = display.newImage( “bkg_clouds.png” )
sky.x = 160; sky.y = 195
local ground = display.newImage( “ground.png” )
ground.x = 160; ground.y = 445
Please help with what is going wrong