This is how I'm making my character swing:
On left button down, every tick.
Character, Set position to (Object.x+cos(time*speed)*radius, (Object.y+sin(time*speed)*Radius)
This works well for me, a part from the fact when i click on the object to make my character swing it puts him however far from the block due to my radius being a set number.
Hope this helps