Having the imageChar behind the dialoguebox

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
Mirrodin
Regular
Posts: 114
Joined: Sun Mar 19, 2017 2:56 pm
Contact:

Having the imageChar behind the dialoguebox

#1 Post by Mirrodin »

Hi,

I have a problem with that :
http://hpics.li/cb7a36d

I want my image side behind the dialogue box, is that possible ? how do that with the mecanism of image side ?
Thanks

Code: Select all

    # 2.1 Definition
define s_fr = Character('{image=interface/nom/Etienne.png}', color="#c8ffc8", image="s", show_side_xalign=1.0, condition='lang == "francais"', who_xpos=500)
define s_en = Character('{image=interface/nom/Etienne.png}', color="#c8ffc8", image="s", show_side_xalign=1.0, condition='lang == "english"', who_xpos=500)

    # 2.2 Image dialogue
    
image side s satisfait= "dialogue/godelin_noir/satisfait.png"

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Having the imageChar behind the dialoguebox

#2 Post by Divona »

In "screen say" within "screens.rpy", move the side image part to the bit before the dialogue window.

Code: Select all

screen say(who, what):
    style_prefix "say"

    # Move side image to here.
    if not renpy.variant("small"):
        add SideImage() xalign 0.0 yalign 1.0

    # The rest of the code.
    window:
        id "window"

        . . .
Completed:
Image

User avatar
Mirrodin
Regular
Posts: 114
Joined: Sun Mar 19, 2017 2:56 pm
Contact:

Re: Having the imageChar behind the dialoguebox

#3 Post by Mirrodin »

It works
Thanks !

Post Reply

Who is online

Users browsing this forum: No registered users