SFML adding an object with respect to other ones

In my SFML application, I want to add waypoints to the specific coordinates. However, I want to add them with respect to other objects.

For example;

https://imgur.com/cD4F9Xg

I want to add them according to roadtiles' coordinates, not absolute coordinates.

How can I add them?
I'm not sure what you are asking. How to organize data structure?
If so you may have a class with basic data like position and extent. One inheritance might contain a std::vector with [smart] pointer to sub items,
I want to add an image and set its position according to another object:

https://imgur.com/880egaq

I do not want to add them according to absolute coordinate.
so instead of
1
2
a.x = X
a.y = Y
you want to do
1
2
a.x = b.x + offset_x
a.y = b.y + offset_y


¿what's the problem?
Topic archived. No new replies allowed.