I am new to this program so far I have, really like it, I have started a project that has to images displayed one on the left on and the right with dialogue for each.
What I want to ask is this how can you place the Character name under the image, so you know who is talking. I hope I'm explaining myself.
code is very simple
define t = Character ('Tom', color="#c8c8ff")
define m = Character ('Mary', color="#c8ffc8") what i would like to do is display this on the right as I have the image set to display on the right.
Thanks
Darbat1
Charater Name positions
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.
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: Charater Name positions
darbat1 wrote: ↑Tue Jul 10, 2018 5:59 am I am new to this program so far I have, really like it, I have started a project that has to images displayed one on the left on and the right with dialogue for each.
What I want to ask is this how can you place the Character name under the image, so you know who is talking. I hope I'm explaining myself.
code is very simple
define t = Character ('Tom', color="#c8c8ff")
define m = Character ('Mary', color="#c8ffc8") what i would like to do is display this on the right as I have the image set to display on the right.
Thanks
Darbat1
Have you looked at side images?
https://www.renpy.org/doc/html/side_ima ... de%20image
That's a standard solution for showing who is talking. Not quite the way you wanted it, but it will fulfill that purpose.
Of course it is possible to have the kind of solution you are talking about, but I believe that you have to build that solution yourself and that is perhaps not what you should go for at this stage, unless there is not a strong reason for you to do it that way.
One way of showing a string of the name of the character talking in different places depending on which character is talking could be like this.
Code: Select all
image Mary = Text("Mary")
image Tom = Text("Tom")
----
label start:
----
show Mary:
xpos 50
ypos 100
"Mary says something."
hide Mary
show Tom:
xpos 500
ypos 100
"Tom says something different"
hide Tom
I believe a solution involving screens would be a better way.
Though my knowledge of Ren'py is also rather limited, so there might well be some much better way of doing it
Who is online
Users browsing this forum: No registered users