Rotation around the outside of a circle

I want this image to rotate around the outside of my circle full 360. this is what i have so far. its not rotation at the cent o

function scene:create( event )

   

    local sceneGroup = self.view

    – Code here runs when the scene is first created but has not yet appeared on screen

local myText = display.newText( “By Devonte Ewers”, 297, 518, native.systemFont, 5)

local background = display.newImage(“images/background.png”)

background.x = display.contentCenterX

    background.y = display.contentCenterY

local c1 = display.newCircle( 250, -34, 145)

c1.x = display.contentCenterX

    c1.y = display.contentCenterY

local paddle = display.newImage(“curve.png”)

paddle.x = display.contentCenterX

paddle.y = display.contentCenterY

local function tapListener( event )

 paddle:rotate( 5 )

end

Runtime:addEventListener( “tap”, tapListener )

RotateTimer = timer.performWithDelay( 020, tapListener, 0)

PLEASE use the code edit button in the forum text editor. I can’t stress this enough.

The easiest way to make one display object orbit another is to put it in a display group and rotate that group. EG:

local aObject = display.newRect( 500, 500, 200, 100 ) local group = display.newGroup() group.x, group.y = 500, 500 local bObject = display.newCircle( group, 0, -200, 25 ) transition.to( bObject, { time=5000, rotation=360, iterations=0 } )

PLEASE use the code edit button in the forum text editor. I can’t stress this enough.

The easiest way to make one display object orbit another is to put it in a display group and rotate that group. EG:

local aObject = display.newRect( 500, 500, 200, 100 ) local group = display.newGroup() group.x, group.y = 500, 500 local bObject = display.newCircle( group, 0, -200, 25 ) transition.to( bObject, { time=5000, rotation=360, iterations=0 } )