So I’d like to create a library of text…literally. I’d like my game to have a vast repository of lore and history available to read on demand, rather than bombarding my player with it in the main storyline, so I’d like to have lots of books. For the time being, they all use the same page texture and animation, which is fine, but writing the text on the pages has led me into a couple of problems.
*Is there a way to automatically word wrap the text, or will I need to write a script that automatically puts in
at the end of every line from my source text?
*Is there an easy way to call text by file to read it line by line? In Ruby, if I remember correctly, it was ridiculously easy, whereas in Java, it took a little more doing. Not sure how Python handles things.
What I have in mind would be like…
which would return a string or an array of lines or…it’s been a long time since my CS classes, I don’t know what data structure would be the most efficient way to do this. My guess is being able to dynamically load in/free lines of pre-formatted text would be the ideal, but based on that thread in the other forum, I’m not sure if Blender handles this yet (I may be misinterpreting things again).
If anyone has some insight, as always, I would greatly appreciate the help.