It is currently May 18th, 2022, 2:43 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

Post by GreyWarden777 »

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: 22519
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Unavailable tofind the error

Post by jsmorley »

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.