This is the code that creates my text and font object:
font.loadFromFile("sansation.ttf");
text.setColor(sf::Color::Black);
text.setFont(font);
text.setCharacterSize(20);
text.setString(""+count);
It kind of works but instead of printing out the value of count, it prints out the name of the font i'm using. Now here is the funny part. I have an event that is supposed to increase the value of count, but instead it updates the string so that it does this:
sansation.ttf
ansation.ttf
nsation.ttf
..and so on until the entire word is gone.
Why won't it print out what I set the string to?