If you are using physics, use the joint actions, like a revolute joint. Otherwise you might be looking at using the normal pin behavior or setting position every frame. You can reference image point positions using [object].ImagePointX() and [object].ImagePointY().
Example:
Thanks for giving me an answer Sumyjkl I tried my best but so far it didn't really worked, the smaller object that wanted simply ran all over the interface. Anyway, I'm building game similar to ROTO (a mobile game for Android and iOS), so I would like you to gave me example on how to use revolute joint for my game. Sorry for the late reply, I'm too preoccupied with my exams for the past weeks.