Hey, so I was wondering, I was following a tutorial and wanted to make my image rotate as a steady speed but I seem to be getting an error.
My code is as follows:
local sq = display.newImage( "maze.png" ) sq.x = display.stageWidth/2 sq.y = display.stageWidth/2 local function animate( event ) sq.rotation = square.rotation + 1 end Runtime:addEventListener( "enterFrame", animate );
What seems to be causing it?