I'm working on creating a dialogue box in Pygame. The problem I'm stuck in at the moment is being able to write the text in the box one letter at a time and the text must also be on multiple lines.
To write the text one letter at a time, I adapted the code found in this answer from sloth.
While for the multiline part of the text I found this code by Ted Klein Bergman.
What I would like to do is to merge the second to make the text, in addition to appearing one letter at a time, to be on several lines, but I have no ideas on how to change the first with the second in order to be able to obtain the result that i am looking for. Do you have any ideas, or can you help me solve the question? Thanks to anyone.