I am trying to make a texture follow a different texture. I already got its coordinates but I don′t know how to make the other use those.
I tried:
playerObj2.image.move(sf::Vector2(xPosition,yPosition));
being xPosition
and yPosition
playerObj2's coordinates. Can anyone help me?