Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aanthonyz

Pages: 1 [2]
16
General / Re: Displaying Text using .txt files
« on: March 27, 2014, 04:12:10 pm »
So far I have this:

sf::Text text2("One moment I'm going out with this cute girl and the next, I get stabbed in the chest with", font, 50); //77 Characters
        text2.setPosition(100,790);
        sf::Text text3("a spear. What to do now...just wait? Hmm, I wish I had more time to at least say goodbye", font, 50); //77 Characters
        text3.setPosition(100,860);

using file stream, is it possible to simplify it down to something where it would read a line at a time and once it has read 77 characters, it would move on and fill text3, then text4, etc?

17
General / Displaying Text using .txt files
« on: March 27, 2014, 03:28:57 pm »
Hello, I am creating a Visual Novel by hand and I have gotten to the point where I should start inputting text. Is there anyway I can write all my text into, .txt files and SFML will read it? Ive looked at all the formatting already and at most I can have 5 lines at a time and each line can have 77 characters maximum. Should I use fstream or do people recommend something else

Pages: 1 [2]
anything