I’ve been using the “gear rotation” code from the learning corona website and I’ve come across an error. When I try to move to my next level I get this error: attempt to perform arithmetic on field ‘rotation’ (a nil value). This is what my code looks like.
local function animate ( event )
object.rotation = object.rotation + 7
end
Runtime:addEventListener( “enterFrame”, animate)
It work perfectly other than not allowing me to move to the next level.
Any ideas? [import]uid: 46082 topic_id: 12613 reply_id: 312613[/import]