It is currently June 26th, 2019, 12:45 am

Unavailable tofind the error

Discuss the use of Lua in Script measures.
Posts: 1
Joined: December 31st, 2014, 4:46 pm

Unavailable tofind the error

GreyWarden777 » December 31st, 2014, 4:52 pm

Hi friends,
I can´t find my mistake in the following code:

local floor1 = display.newImageRect( "floor1.jpeg", screenW +2, 82)
floor1.anchorX = 0
floor.anchorY = 1
floor.x, floor.y = -150, display.contentHeight

The program says:
"attempt to index local 'floor1' ( a nil value)".

I hope somebody can help... I would be happy if someone does .

Bye :welcome:
User avatar
Posts: 19269
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Unavailable tofind the error

jsmorley » December 31st, 2014, 5:11 pm

Nothing to do with Rainmeter. It looks to me like you are using the external Corona library with Lua, to draw stuff on the screen. Rainmeter's implementation of Lua does not support external libraries. The basic libraries in Lua have no graphics support.

If it ain't here, you can't do it.