SFML community forums
Help => Graphics => Topic started by: OutlawLee on May 08, 2012, 05:10:20 pm
-
So at the beginning i made sf::Text and set the string to example1. Then i changed the position and the string to example2. But when i do App.Display() i get both. Do i have to make a new sf::Text, or can i somehow unload the example1.
Does making a new variable impact my code in the long run ? (if i continue making new sf::Text for every text)
-
setString overwrites the previous value. If you get both, then you must be doing something wrong, please show your code.
-
Thanks for pointing the fact that it overwrites. I rewritten my code from scratch and now it seems to be working alright. I think it was a problem that i made some declarations inside a class that should be inside ;D