Hello oosyrag thank you for your response, actually I have a instance variable to detect when the character climbs. I attached a image to ilustrate my problem.
when I push up key near the ladder, the character match his X with ladder X to make sure the sprite is center with the ladder, like in figure A.
The problem is, when I duplicate this ladder, whatever ladder I try to climb, the character match his X with the original ladder X.