Having Issues with Side Portraits

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
QtPaTT
Newbie
Posts: 9
Joined: Sun Dec 30, 2018 3:03 pm
Contact:

Having Issues with Side Portraits

#1 Post by QtPaTT »

So, I have been having some troubles getting my images to show to the side. I have one single character that I will always want to show up as a side image, but the code will not work.

For example, I have tried this line of code:

Code: Select all

image side fleur = "characters/fleursprite.png"
And the code doesn't register it as a side image. It just shows the image like any other character; in the center.

Is there any other way that I can have a side portrait show up at the left of my text box?

Thank you!

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Having Issues with Side Portraits

#2 Post by rayminator »

part of your code is right but we don't about the defined character it right

it should look like this make sure you put , image="......" and make sure the locations is correct

Code: Select all

define a = Character("Maejima", image="fleur")
and this the part to adjust the side image to move left or right

Code: Select all

add SideImage() xalign 0.0 yalign 1.0 xpos 30

QtPaTT
Newbie
Posts: 9
Joined: Sun Dec 30, 2018 3:03 pm
Contact:

Re: Having Issues with Side Portraits

#3 Post by QtPaTT »

rayminator wrote: Fri Jan 10, 2020 3:56 pm
Thank you so much! This worked! Do you know how I can change the expressions of the character?

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Having Issues with Side Portraits

#4 Post by rayminator »

this might help you out look at this code it will show you how to do it

and here is some more info on it
https://www.renpy.org/doc/html/side_image.html

Code: Select all

define e = Character("Eileen", image="eileen")

image eileen happy = "eileen_happy.png"
image eileen concerned = "eileen_concerned.png"

image side eileen happy = "side_eileen_happy.png"
image side eileen = "side_eileen.png"

label start:

    show eileen happy

    e "Let's call this line Point A."

    e concerned "And this one is point B."

Post Reply

Who is online

Users browsing this forum: No registered users