I worked with my method and i saw the other problem.
I have 2 image:
Background 1920x1080
Human 118X112
float xInMap=0.055, yInMap=0.775; //Human's X, Y
float xResolution = 1200, yResolution = 510; //Selected resolution
float K = yResolution/1080;
sprite.setTextureRect(IntRect(0,0,1920,1080)); //My background
sprite.setPosition(-0.01*xResolution,0); //Background Position
sKyb.setTextureRect(IntRect(0, 0, 118, 112)); //My human
sKyb.setPosition(xInMap*xResolution, yInMap*yResolution); //Human position
sKyb.setScale(K, K);
sprite.setScale(K, K);
float xImage = xInMap*xResolution, yImage = yInMap*yResolution; //Position for drawing
RenderWindow app(VideoMode(xResolution, yResolution), "Test Window");
In one situation human stay at one place(in background). Example: stands at the door, which drawed in background. Then i changed resolution and after that the human didn't stay at the door
I know where is the problem but i don't know how to fix it:
The problem in the Scale. When i scaled background, i changed the position of door.
But plz don't advise me that i must work with image where human are with size 1920x1080 (it's load pc a lot) and don't advise me that i must work with door separately coz in future i need to work with background.
Hope that you understand me, coz i lost my brain an hour ago and i sure that i wrote nonsense
This picture help you to understand me
in this image i used 1280x720
in this image i used 900x800 (it's not the one of resolutions where i saw the problem)