Bar problem?

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
NoahSindri
Regular
Posts: 69
Joined: Tue May 07, 2013 1:05 pm
Projects: Truculence, Noraska:The cats valley
Organization: Sunset Productions
Location: Cyprus
Contact:

Bar problem?

#1 Post by NoahSindri »

I have a problem with the talking bars in my game, for example when someone is talking, the words fit in their place correctly, but when the character is thinking inside his head *someone not talking* , the words don't fit in their place...
The screenshots will explain what I'm trying to say...
Attachments
screenshot0009.png
screenshot0008.png

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Bar problem?

#2 Post by Asceai »

Wrong forum.

How are you specifying the placement of the dialogue text?

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Bar problem?

#3 Post by OokamiKasumi »

NoahSindri wrote:I have a problem with the talking bars in my game, for example when someone is talking, the words fit in their place correctly, but when the character is thinking inside his head *someone not talking* , the words don't fit in their place...
This is a TextBox problem.
-- When you say 'bar' people tend to think: scrollbar.

What's happening has to do with:
1) How you defined your Characters
and
2) How you defined your Texbox parameters.

example of character definitions:

Code: Select all

define ian_talk = Character('Ian', 
    color="000000", 
    show_two_window = True,
    )

define ian_think = Character(None, 
    color="0666666", 
    )
example of Textbox parameters:

Code: Select all

init -2 python hide:

    ###############################################
    ##-------------- Textbox ----------------------

    # style.say_window.font = "bluecabin.ttf"
    # style.say_window.size = 30

    ## Frame ------------------------
    style.window.background = Frame("ui/textbox.png", 0, 0)
    
    ## No Frame --------------------
    # style.window.background = "ui/textbox.png"

    ## Margin is space surrounding the window, where the background
    ## is not drawn.

    style.window.left_margin = 100
    style.window.right_margin = 100
    style.window.top_margin = 0
    style.window.bottom_margin = 30

    ## Padding is space inside the window, where the background is
    ## drawn.

    style.window.left_padding = 50
    style.window.right_padding = 50
    style.window.top_padding = 25
    style.window.bottom_padding = 25

    ## This is the minimum height of the window, including the margins
    ## and padding.

    style.window.xminimum = 800
    style.window.yminimum = 200 

From your screenshots, it looks to me like the Character definitions are interfering with your Textbox parameters.
-- As a rule of thumb, your textbox parameters are your Base settings. Anything in your Character Definitions will ADD to those base settings.
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

Post Reply

Who is online

Users browsing this forum: geoWaffle