Side image is not showing up?

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
User avatar
nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Side image is not showing up?

#1 Post by nanashine » Tue Dec 05, 2017 5:24 pm

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 :)
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

User avatar
Amie
Regular
Posts: 28
Joined: Tue Jun 06, 2017 4:48 am
Contact:

Re: Side image is not showing up?

#2 Post by Amie » Wed Dec 06, 2017 12:15 am

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 :)

User avatar
nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Re: Side image is not showing up?

#3 Post by nanashine » Wed Dec 06, 2017 5:28 am

Thank you! I'm gonna try this one :)
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

User avatar
nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Re: Side image is not showing up?

#4 Post by nanashine » Wed Dec 06, 2017 12:56 pm

Thank you! It worked! :)
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], gas, Imperf3kt, ISAWHIM