History Text Overlapping

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Kokoro
Newbie
Posts: 11
Joined: Sat Jul 15, 2017 10:06 pm
Contact:

History Text Overlapping

#1 Post by Kokoro »

Hi there!

So I've run into another problem, when using the "History" function in my game some of the text overlaps in it.
It seems to be happening during the NVL text. This is my code for my NVL:

Code: Select all

define narration = Character(kind=nvl)
Then I will do something like:

Code: Select all

narration "The end of winter.\n 

               The trees are starting to shake the ice from their branches, but a bitter chill still lingers in the morning air.\n
               
               Animals begin to wake from their long sleep, skittish and aware of their ever changing surroundings.\n
               
               The forest comes to life as the sun begins to turn the sky an inky blue, promising much needed warmth.\n
               
               By noon, the buzz of birds, insects and small animals grows louder.\n
               
               The forest is a picture perfect scene, but the travelers passing above the treetops have no time to admire the view."
Here is a screenshot of the history page:
http://imgur.com/wwA0xzN

Any help would be appreciated!

User avatar
vollschauer
Veteran
Posts: 231
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: History Text Overlapping

#2 Post by vollschauer »

With that long text I guess you need to change the settings in your gui.rpy about history text height/width

## Hist

Code: Select all

ory #####################################################################
##
## The history screen displays dialogue that the player has already dismissed.

## The number of blocks of dialogue history Ren'Py will keep.
define config.history_length = 250

## The height of a history screen entry, or None to make the height variable at
## the cost of performance.
define gui.history_height = 140

## The position, width, and alignment of the label giving the name of the
## speaking character.
define gui.history_name_xpos = 150
define gui.history_name_ypos = 0
define gui.history_name_width = 150
define gui.history_name_xalign = 1.0

## The position, width, and alignment of the dialogue text.
define gui.history_text_xpos = 170
define gui.history_text_ypos = 5
define gui.history_text_width = 740
define gui.history_text_xalign = 0.0

User avatar
Kokoro
Newbie
Posts: 11
Joined: Sat Jul 15, 2017 10:06 pm
Contact:

Re: History Text Overlapping

#3 Post by Kokoro »

Thanks! That's exactly what I need. Maybe I should also break up my NVL paragraphs. lol

Post Reply

Who is online

Users browsing this forum: Bing [Bot]