local bmp = Bitmap.new(Texture.new("ball.png", true)) bmp:setAnchorPoint(0.5, 0.5) bmp:setPosition(100, 100) stage:addChild(bmp) stage:addEventListener(Event.ENTER_FRAME, function() bmp:setRotation(bmp:getRotation()+5) end)