Im am attempting to follow a coding guide called Corona in 5 minutes but it returns an error when i copy exactly what is in the guide. Im really enjoying the resources available so far (particularly “Programming in Lua” by by Roberto Ierusalimschy) but this has stumped my progress.
local myTextObject = display.newText( “Hello World”, 10, 10, “Arial”, 60 );
myTextObject:setFillColor( 1, 0, 0 )
This code shows this error in the output
Runtime error: \main.lua:8: attempt to call method ‘setFillColor’ <a nil value>
Thanks a lot for any help.
