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.
SO, I ran into this issue once I started implementing character sprites in-game: I set it up so that the characters talking sprite is showing when they are talking and with their mouth closed when they are not, but, for some reason, they dont transition after the second or third line of dialogue. Does anyone know what I could be doing wrong? Also, does anyone know how I can set the default 'right' and 'left' locations for sprites so my code doesn't look so ugly? Thanks
show ross_tk at right:
xalign 0.7
show lydia_sm at left:
xalign 0.2
r "I was just working on a little project of my own and lost track of time. Sorry man."
show ross_sm at right:
xalign 0.7
show lydia_sm at left:
xalign 0.2
t "Ah, it doesn't matter. You guys good to go?"
show ross_sm at right:
xalign 0.7
show lydia_tk at left:
xalign 0.2
l "You know it. I don't go anywhere without my baby."
show ross_tk at right:
xalign 0.7
show lydia_sm at left:
xalign 0.2
r "Do you really have to ask? We've been planning this for a week."
"When people sometimes misquote me, I don't know if they understand what I'm saying."
-Tommy Wiseau
transform right():
xalign 0.7
transform left():
xalign 0.2
label start:
show ross_tk at right
show lydia_sm at left
r "I was just working on a little project of my own and lost track of time. Sorry man."
show ross_sm at right
t "Ah, it doesn't matter. You guys good to go?"
show lydia_tk at left
l "You know it. I don't go anywhere without my baby."
show ross_tk at right
show lydia_sm at left
r "Do you really have to ask? We've been planning this for a week."
If you define your images differently, you can further simplify this.
transform right():
xalign 0.7
transform left():
xalign 0.2
label start:
show ross tk at right
show lydia sm at left
r "I was just working on a little project of my own and lost track of time. Sorry man."
show ross sm
t "Ah, it doesn't matter. You guys good to go?"
show lydia tk
l "You know it. I don't go anywhere without my baby."
show ross tk
show lydia sm
r "Do you really have to ask? We've been planning this for a week."
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails
Okay, so after implementing that fix you gave me (which worked, btw!) I ran into another issue. The character sprites are no longer grounded to the bottom edge of the screen. Using yalign grounds them to the top of the screen. I could always just use yalign (through some trial and error) but the sprites are different sizes. Would that matter at all?
"When people sometimes misquote me, I don't know if they understand what I'm saying."
-Tommy Wiseau
I could always just use yalign (through some trial and error) but the sprites are different sizes. Would that matter at all?
Depends on the value you use.
I believe you want "yalign 1.0".
(The .0 is necessary)
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails