SFML community forums

Help => Window => Topic started by: mrjbom on January 31, 2019, 03:11:43 pm

Title: How to change the point of origin?
Post by: mrjbom on January 31, 2019, 03:11:43 pm
Hello.
By default, the position of the object is from the top left corner of the window, I need to set this point in the middle of the bottom of the window. So that it looks like this picture.
Title: Re: How to change the point of origin?
Post by: eXpl0it3r on January 31, 2019, 03:57:11 pm
You can move the origin point by moving the sf::View.
You can't change the axis direction, but you can simply negate the value before you set the position.
Title: Re: How to change the point of origin?
Post by: mrjbom on January 31, 2019, 04:51:39 pm
You can move the origin point by moving the sf::View.
You can't change the axis direction, but you can simply negate the value before you set the position.

Thanks you.