Easiest way would be to offset the origin of the sprite and use the Rotate behavior.
But if you are looking for a more complicated thing, like using physics and hinges and pinning objects, then it can be as complicated as you want or need.
You can also use other behaviors, like a Bullet. Then change the angle of the bullet constantly.