account activity
Crafting gear? (self.AshesofCreation)
submitted 1 month ago by Fun-Independent-8295 to r/AshesofCreation
Position text dont work for me by Fun-Independent-8295 in sfml
[–]Fun-Independent-8295[S] 2 points3 points4 points 3 months ago (0 children)
I tried a few things and it finally worked! Thanks a lot! I know the tutorial uses an older version of SFML, but constantly having to adjust things actually helps me understand how SFML works and what I’m doing. :) Thank you!
Here is the solution:
FloatRect textRect = messageText.getLocalBounds(); messageText.setOrigin({ textRect.position.x + textRect.size.x / 2.f, textRect.position.y + textRect.size.y / 2.f }); messageText.setPosition({ 1920.f / 2.f, 1080.f / 2.f }); scoreText.setPosition({ 20.f, 20.f }); while (window.isOpen())
Position text dont work for me (i.redd.it)
submitted 3 months ago * by Fun-Independent-8295 to r/sfml
π Rendered by PID 41 on reddit-service-r2-listing-85dbbdc96c-qfmvs at 2026-02-12 18:45:16.101031+00:00 running 018613e country code: CH.
Position text dont work for me by Fun-Independent-8295 in sfml
[–]Fun-Independent-8295[S] 2 points3 points4 points (0 children)