How to connect a rope between objects

I want a rope to shown as my player is pulling in a rock or enemy The problem is

I don’t know how to do that I want a rope wrap around blocks and attach to a rock from the players body and get shorter as it pulls the rock

You need to create a small rope as 9-patch object and extend it to the desired size.
Then you need to make new animations for your player and blocks, with a rope attached, and trigger that animation when desired.