character name + font questions

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
tooaya
Regular
Posts: 54
Joined: Tue Dec 08, 2009 3:47 am
Contact:

character name + font questions

#1 Post by tooaya » Thu Jan 27, 2011 1:24 am

It's been a while since I played around with renpy so I totally turned back to a noob again (not that I was an expert before pffft ).

Two questions, one on textbox and one on font:

1. How do you separate character name from the actual text in the text box? My text box has a space on top of it for character names, but for some reason I can't get the character name to stay up there.. I tried separating the character name by using the show_two_window=True statement, but the name ends up getting covered up by the original textbox. : x (see attachment)

2. For easier view, I added a drop-shadow effect for the in-game texts. However, the drop-shadow effect look kind of ugly everywhere else (as in the save/load screen, yes/no prompt screen etc etc ). Is there a way to get rid of the drop-shadow effect so that it only remains in the in-game scripts?

Thanks in advance!
Attachments
q1.jpg
q1.jpg (16.05 KiB) Viewed 767 times

User avatar
backansi
Veteran
Posts: 224
Joined: Sun May 31, 2009 7:15 am
Location: Korea, Republic of
Contact:

Re: character name + font questions

#2 Post by backansi » Thu Jan 27, 2011 10:45 am

1. Use Style Inspector and get the style name then set the position of text(or container of dialogue) in init block.

Code: Select all

    # example
    style.say_dialogue.ypos = 500
    style.say_vbox.ypos = ...
    style.say_label.ypos = ...
    .....
2. I think you've changed drop_shadow property of default style which adds shadow effect to the all of the renpy text.

Code: Select all

init python:
    style.default.drop_shadow = (1, 1)
Then, change it to this:

Code: Select all

init python:
    style.say_dialogue.drop_shadow = (1, 1)
    style.say_thought.drop_shadow = (1, 1)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]