Page 1 of 1

Side image is not showing up?

Posted: Tue Dec 05, 2017 5:24 pm
by nanashine
I want the characters to have only one side image, as if it were a "profile picture".
But it's not working at all.
I've already defined the character:

define jo = Character ("John")

And added this:

init:
image side jo = "joavatar.png"
$ jo = Character("jo", color="#6495ed", show_side_image=Image("joavatar.png", xalign=0.0, yalign=1.0))

The error says:

While running game code:
File "game/script.rpy", line 233, in script
john joavatar "Me? Not really!"
Exception: Say has image attributes (u'joavatar',), but there's no image tag associated with the speaking character.


What I am doing wrong?
Thanks in advance :)

Re: Side image is not showing up?

Posted: Wed Dec 06, 2017 12:15 am
by Amie

Code: Select all

define jo = Character('John', image="jo")
image side jo = "joavatar.png"
This is how I display side images, seems to work for me :)

Re: Side image is not showing up?

Posted: Wed Dec 06, 2017 5:28 am
by nanashine
Thank you! I'm gonna try this one :)

Re: Side image is not showing up?

Posted: Wed Dec 06, 2017 12:56 pm
by nanashine
Thank you! It worked! :)