SFML community forums
Help => Graphics => Topic started by: Ranzini on September 28, 2022, 08:50:55 am
-
So im new to SFML and im curious if there is a way to give an object, like a rectangle a graphic and make it move by moving the rectangle
-
If by graphic you mean a texture, then yes, you can set a texture on a RectangleShape or you can also use a Sprite if you just want the shape properties.
See the tutorial section for more information: https://www.sfml-dev.org/tutorials/2.5/graphics-sprite.php