Placing Characters Name in Different Box
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.
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.
- Fenrir34
- Miko-Class Veteran
- Posts: 560
- Joined: Fri Jul 05, 2013 4:39 am
- Completed: Escaping Sorrow
- Projects: Crisis Beat,Lynarsia-The Broken Song
- Location: California
- Contact:
Placing Characters Name in Different Box
So I have a text box and now I have a smaller box for the characters name. Does anyone know how I do that? I can't find the code
-
- Newbie
- Posts: 14
- Joined: Sat Sep 07, 2013 4:32 pm
- Projects: [currently unnamed]
- Location: Quilty, Clare
- Contact:
Re: Placing Characters Name in Different Box
This might be what you're looking for:
http://www.renpy.org/wiki/renpy/doc/FAQ ... own_box.3F
so you just need to add when declaring the characters
e.g.:
http://www.renpy.org/wiki/renpy/doc/FAQ ... own_box.3F
so you just need to add
Code: Select all
show_two_window=True
e.g.:
Code: Select all
$ e = Character("Eileen", show_two_window=True)
- Fenrir34
- Miko-Class Veteran
- Posts: 560
- Joined: Fri Jul 05, 2013 4:39 am
- Completed: Escaping Sorrow
- Projects: Crisis Beat,Lynarsia-The Broken Song
- Location: California
- Contact:
Re: Placing Characters Name in Different Box
quilty wrote:This might be what you're looking for:
http://www.renpy.org/wiki/renpy/doc/FAQ ... own_box.3F
so you just need to addwhen declaring the charactersCode: Select all
show_two_window=True
e.g.:Code: Select all
$ e = Character("Eileen", show_two_window=True)
I looked over the code but I don't know how to place it in my script renpy. This is what it looks like
Code: Select all
define k = Character('Kana', color="#c8ffc8") $ k = Character("Kana", show_two_window=True)
- Fenrir34
- Miko-Class Veteran
- Posts: 560
- Joined: Fri Jul 05, 2013 4:39 am
- Completed: Escaping Sorrow
- Projects: Crisis Beat,Lynarsia-The Broken Song
- Location: California
- Contact:
Re: Placing Characters Name in Different Box
Fenrir34 wrote:quilty wrote:This might be what you're looking for:
http://www.renpy.org/wiki/renpy/doc/FAQ ... own_box.3F
so you just need to addwhen declaring the charactersCode: Select all
show_two_window=True
e.g.:Code: Select all
$ e = Character("Eileen", show_two_window=True)
I looked over the code but I don't know how to place it in my script renpy. This is what it looks like
Code: Select all
define k = Character('Kana', color="#c8ffc8") $ k = Character("Kana", show_two_window=True)
Also the namebox isn't showing up when I put it in my options and yet I have it in my game folder
Code: Select all
## More customizations can go here.
style.say_who_window.background = Frame("namebox.png", 15, 15)
style.say_who_window.xalign = 0.0
style.say_who_window.yalign = 1.0
#style.say_who_window.xpos = 100 #For precise placement
#style.say_who_window.ypos = 100 #For precise placement
style.say_who_window.left_padding = 15
style.say_who_window.top_padding = 15
style.say_who_window.right_padding = 15
style.say_who_window.bottom_padding = 15
style.say_who_window.xminimum = 150
style.say_who_window.yminimum = 15
style.say_who_window.xfill = False
Re: Placing Characters Name in Different Box
I assumed that this code is on 2 lines? Because it's not even valid syntax when you put on just 1 line.Fenrir34 wrote:Code: Select all
define k = Character('Kana', color="#c8ffc8") $ k = Character("Kana", show_two_window=True)
Here is an explanation of what went wrong with your code:
1.
Code: Select all
$ k = Character("Kana", show_two_window=True)
2.
Even if you were to fix problem #1 by putting it correctly into an init block like this....
Code: Select all
define k = Character('Kana', color="#c8ffc8")
init:
$ k = Character("Kana", show_two_window=True)
What you want to do is supply all information at the same time while you create the character. Like this:
Code: Select all
define k=Character("Kana", color="#c8ffc8",show_two_window=True)
-
- Newbie
- Posts: 14
- Joined: Sat Sep 07, 2013 4:32 pm
- Projects: [currently unnamed]
- Location: Quilty, Clare
- Contact:
Re: Placing Characters Name in Different Box
Don't worry, you don't need to make a separate statement for it:Fenrir34 wrote:
I looked over the code but I don't know how to place it in my script renpy. This is what it looks like
Code: Select all
define k = Character('Kana', color="#c8ffc8") $ k = Character("Kana", show_two_window=True)
Code: Select all
define k = Character('Kana', color="#c8ffc8, show_two_window=True)
- Fenrir34
- Miko-Class Veteran
- Posts: 560
- Joined: Fri Jul 05, 2013 4:39 am
- Completed: Escaping Sorrow
- Projects: Crisis Beat,Lynarsia-The Broken Song
- Location: California
- Contact:
Re: Placing Characters Name in Different Box
Thanks but the code doesn't work. It's okay though. I'll just live with what I got. Thanksquilty wrote:Don't worry, you don't need to make a separate statement for it:Fenrir34 wrote:
I looked over the code but I don't know how to place it in my script renpy. This is what it looks like
Code: Select all
define k = Character('Kana', color="#c8ffc8") $ k = Character("Kana", show_two_window=True)
Sorry if I confused you, I hope it works nowCode: Select all
define k = Character('Kana', color="#c8ffc8, show_two_window=True)
Re: Placing Characters Name in Different Box
Sigh...It's just a small syntax error in quilty's code.Fenrir34 wrote: Thanks but the code doesn't work. It's okay though. I'll just live with what I got. Thanks
Try the code I put at the end of my previous post, which is just like quilty's code but without the missing quotation mark.
- 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: Placing Characters Name in Different Box
The code and indtructions you are looking for can be found in this tutorial: [Tutorial] Customizing the Textbox in the Cookbook section of this forum.Fenrir34 wrote:So I have a text box and now I have a smaller box for the characters name. Does anyone know how I do that? I can't find the code
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed:
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
Most recent Games Completed:
- The Walk[Psychological][NanoWinter] ~ PG New!
- Trap! [ModernFantasy][VN] ~ PG16
- The Adventures of Prince Ivan [Fant/Adv/VN] ~ PG
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
- Fenrir34
- Miko-Class Veteran
- Posts: 560
- Joined: Fri Jul 05, 2013 4:39 am
- Completed: Escaping Sorrow
- Projects: Crisis Beat,Lynarsia-The Broken Song
- Location: California
- Contact:
Re: Placing Characters Name in Different Box
OokamiKasumi wrote:The code and indtructions you are looking for can be found in this tutorial: [Tutorial] Customizing the Textbox in the Cookbook section of this forum.Fenrir34 wrote:So I have a text box and now I have a smaller box for the characters name. Does anyone know how I do that? I can't find the code
Thank you
Who is online
Users browsing this forum: Ahrefs [Bot]