How to change the side image?

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
WildFLOWER
Newbie
Posts: 13
Joined: Wed Jul 11, 2012 7:33 pm
Completed: Dance With Me In Wonderland
Projects: Witch Artifacts
Contact:

How to change the side image?

#1 Post by WildFLOWER » Mon Aug 20, 2012 12:41 am

I know that when you make a script, you can add a side image for a specific character. The question is; how would I go about it if I wanted to change the side image as if I wanted to change the character's expression? Would I need to define a whole new character for it or there an easier way?
For updates on future releases:
TWITTER

User avatar
Minnfae
Regular
Posts: 106
Joined: Mon Dec 07, 2009 5:01 am
Projects: Undecided
Contact:

Re: How to change the side image?

#2 Post by Minnfae » Mon Aug 20, 2012 2:50 am

You can do that, here's a little sample

Code: Select all

define e = Character('Eileen', color="#c8ffc8", window_left_padding = 200, image="eileen")

image side eileen happy = "e_happy.png"
image side eileen sad = "e_sad.png"

label start:

    e "No side image."

    e happy "I'm happy"
    
    e "I'm still happy"

    e sad "I'm sad now."
    
    return
My avatar art is a freebie by SilverHyena. Thanks a lot!

User avatar
WildFLOWER
Newbie
Posts: 13
Joined: Wed Jul 11, 2012 7:33 pm
Completed: Dance With Me In Wonderland
Projects: Witch Artifacts
Contact:

Re: How to change the side image?

#3 Post by WildFLOWER » Mon Aug 20, 2012 2:59 am

Minnfae wrote:You can do that, here's a little sample

Code: Select all

define e = Character('Eileen', color="#c8ffc8", window_left_padding = 200, image="eileen")

image side eileen happy = "e_happy.png"
image side eileen sad = "e_sad.png"

label start:

    e "No side image."

    e happy "I'm happy"
    
    e "I'm still happy"

    e sad "I'm sad now."
    
    return
Great, thank you ^^
For updates on future releases:
TWITTER

User avatar
WildFLOWER
Newbie
Posts: 13
Joined: Wed Jul 11, 2012 7:33 pm
Completed: Dance With Me In Wonderland
Projects: Witch Artifacts
Contact:

Re: How to change the side image?

#4 Post by WildFLOWER » Mon Aug 20, 2012 7:16 am

Minnfae wrote:You can do that, here's a little sample

Code: Select all

define e = Character('Eileen', color="#c8ffc8", window_left_padding = 200, image="eileen")

image side eileen happy = "e_happy.png"
image side eileen sad = "e_sad.png"

label start:

    e "No side image."

    e happy "I'm happy"
    
    e "I'm still happy"

    e sad "I'm sad now."
    
    return
Actually, I still can't quite get it to work :\ This is the coding I have:

Code: Select all

# Declare characters used by this game.
define a = Character('Arrietta', color="#c8ffc8", window_left_padding = 200, image="arietta")
image side arrietta talk angry = "arrietta angry talk.png"
image side arrietta talk blush = "arrietta blush talk.png"
image side arrietta talk = "arrietta talk.png"
image side arrietta blush = "arrietta blush.png"
image side arrietta angry = "arrietta angry.png"
image side arrietta upset = "arrietta upset.png"
image side arrietta sad = "arrietta sad.png"
image side arrietta happy = "arrietta.png"


# The game starts here.
label start:

    a "A long time ago..."

    return
Did I do something wrong? D: I tried putting in a different image although it still didn't work DX
For updates on future releases:
TWITTER

User avatar
Minnfae
Regular
Posts: 106
Joined: Mon Dec 07, 2009 5:01 am
Projects: Undecided
Contact:

Re: How to change the side image?

#5 Post by Minnfae » Mon Aug 20, 2012 8:39 am

Well, at first glance, the first mistake I see is that when you defined the character, you gave her the tag 'arietta' (one r) and then in the images you wrote 'arrietta' (two rr), I'll check if there's anything else to fix :P

EDIT: I tried it and just writing the tag correctly was enough to make it work.
My avatar art is a freebie by SilverHyena. Thanks a lot!

User avatar
WildFLOWER
Newbie
Posts: 13
Joined: Wed Jul 11, 2012 7:33 pm
Completed: Dance With Me In Wonderland
Projects: Witch Artifacts
Contact:

Re: How to change the side image?

#6 Post by WildFLOWER » Mon Aug 20, 2012 8:53 am

Minnfae wrote:Well, at first glance, the first mistake I see is that when you defined the character, you gave her the tag 'arietta' (one r) and then in the images you wrote 'arrietta' (two rr), I'll check if there's anything else to fix :P

EDIT: I tried it and just writing the tag correctly was enough to make it work.
Oh, haha XD I didn't see that there ^^' Thank you ouo
For updates on future releases:
TWITTER

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot