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.
-
Zeekee
- Regular
- Posts: 61
- Joined: Wed Jul 23, 2014 10:17 pm
- Projects: No One But You, The Anomaly
- Organization: Annexe Interactive
- Skype: ytmnd111
- Soundcloud: zomgaarh
- Location: USAF Academy, CO
-
Contact:
#1
Post
by Zeekee » Sat Mar 12, 2016 2:30 am
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
An excerpt from the script:
Code: Select all
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
-
Zetsubou
- Veteran
- Posts: 490
- Joined: Wed Mar 05, 2014 1:00 am
- Completed: See my signature
- Github: koroshiya
- itch: zetsuboushita
-
Contact:
#2
Post
by Zetsubou » Sat Mar 12, 2016 3:49 am
Code: Select all
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.
Code: Select all
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."
For further explanation, you should read through the documentation a bit. Specifically:
https://www.renpy.org/doc/html/displayi ... -statement
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails
Working on:
Circadian Loop, My Heart Grows Fonder + VN writing commissions

-
Zeekee
- Regular
- Posts: 61
- Joined: Wed Jul 23, 2014 10:17 pm
- Projects: No One But You, The Anomaly
- Organization: Annexe Interactive
- Skype: ytmnd111
- Soundcloud: zomgaarh
- Location: USAF Academy, CO
-
Contact:
#3
Post
by Zeekee » Sat Mar 12, 2016 4:21 am
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
-
Zetsubou
- Veteran
- Posts: 490
- Joined: Wed Mar 05, 2014 1:00 am
- Completed: See my signature
- Github: koroshiya
- itch: zetsuboushita
-
Contact:
#4
Post
by Zetsubou » Sat Mar 12, 2016 5:20 am
Code: Select all
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
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails
Working on:
Circadian Loop, My Heart Grows Fonder + VN writing commissions

-
Zeekee
- Regular
- Posts: 61
- Joined: Wed Jul 23, 2014 10:17 pm
- Projects: No One But You, The Anomaly
- Organization: Annexe Interactive
- Skype: ytmnd111
- Soundcloud: zomgaarh
- Location: USAF Academy, CO
-
Contact:
#5
Post
by Zeekee » Sun Mar 13, 2016 4:50 am
The yalign didn't work. I've been spending hours on this and I can't seem to figure out how to ground them properly...
"When people sometimes misquote me, I don't know if they understand what I'm saying."
-Tommy Wiseau
-
curry nochi rice
- Miko-Class Veteran
- Posts: 741
- Joined: Sat Mar 27, 2010 3:12 am
- Projects: Delicatessen, Whom to Notice, Start of Something, Love Sorcery
- Organization: Circle Cosine
- IRC Nick: Curry
- Skype: after.curry.rice
- itch: project-rothera
-
Contact:
#6
Post
by curry nochi rice » Fri Apr 22, 2016 4:18 am
Zeekee wrote:The yalign didn't work. I've been spending hours on this and I can't seem to figure out how to ground them properly...
you might want to fix the transform itself, like yanchor 1.0
-
xavimat
- Eileen-Class Veteran
- Posts: 1433
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love, unknown
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: xavimat
- Location: Italy
-
Contact:
#7
Post
by xavimat » Fri Apr 22, 2016 6:31 am
As curry noche rice says, fis the transform, but you can do it with yalign 1.0:
Code: Select all
transform right:
xalign 0.7 yalign 1.0
transform left():
xalign 0.2 yalign 1.0
yanchor is not necessary because is included in yalign