Page 1 of 1

NVL entry background (changing background with variable) ? [SOLVED]

Posted: Fri Aug 17, 2018 3:31 pm
by idka
So I'm making a dating sim and I've customized NVL mode to look like a phone and each entry to look like a message. I set the background for the nvl_entry style to be a message bubble, but what I can't seem to figure out is how to set a variable or something that changes the image (to a bubble that's a different color) based on who is speaking.

Code: Select all

style nvl_entry:
    xfill True
    ysize gui.nvl_height
    background "gui/msg[num].png"
I have msg1.png and msg2.png, and I was thinking I could have an if statement change [num] to correspond to the correct image, but I'm not sure how to accomplish that. Thanks for any help!

Re: NVL entry background (changing background with variable) ?

Posted: Sat Aug 18, 2018 1:01 am
by Kia
it can be done while defining your character, you can have all kind on differences between your characters text and window
https://renpy.org/doc/html/dialogue.htm ... er-objects

Re: NVL entry background (changing background with variable) ?

Posted: Sat Aug 18, 2018 8:14 pm
by idka
Thank you!