Page 1 of 1

Side image doesn't use default image during dialogue

Posted: Sat Aug 19, 2017 6:47 pm
by obi_dev
Simple problem, but not sure about simple solution..

Code: Select all

image side mom = Image("images/portraits/mom.png", xoffset=-50, yoffset=130)
image side mom sad = Image("images/portraits/mom-sad.png", xoffset=-50, yoffset=130)

Code: Select all

mom "stuff stuff"
mom sad "stuff stuff"
mom "stuff stuff"

During dialogue, the default mom.png shows, then sad kicks in and mom-sad.png shows, but when I go back to 'mom', mom-sad.png is still showing.

If i did the example below, it resets it, but I don't want to have to do that everytime :\ unless i have to. when 'mom xx' comes up, the default image shows.

Code: Select all

mom "stuff stuff"
mom sad "stuff stuff"
mom xx "stuff stuff"
mom "stuff"

Re: Side image doesn't use default image during dialogue

Posted: Sat Aug 19, 2017 7:05 pm
by PyTom
This is correct behavior, it's tracking the character attributes.

Re: Side image doesn't use default image during dialogue

Posted: Sat Aug 19, 2017 8:03 pm
by obi_dev
PyTom wrote: Sat Aug 19, 2017 7:05 pm This is correct behavior, it's tracking the character attributes.
So, your pretty much saying then that to get it to reset, i'd have to do

mom
mom sad
mom xx

Where XX would revert back to default. Interesting, but no worries. I figured I could make a "mom r" for reset and assign same attributes as mom.
Thanks for the help :D

Re: Side image doesn't use default image during dialogue

Posted: Sat Aug 19, 2017 9:03 pm
by PyTom
Actually, xx is sort of a problem. (I'm surprised it works.) The right way to do it is.

Code: Select all

mom -sad "I'm not sad anymore."

Re: Side image doesn't use default image during dialogue

Posted: Sat Aug 19, 2017 9:13 pm
by obi_dev
PyTom wrote: Sat Aug 19, 2017 9:03 pm Actually, xx is sort of a problem. (I'm surprised it works.) The right way to do it is.

Code: Select all

mom -sad "I'm not sad anymore."
Yeah, I noticed when I did mom xx, it worked, but when I did the lint check, it came back with an undefined warning.
However, with -sad, I get an error

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
NameError: name 'sad' is not defined

Re: Side image doesn't use default image during dialogue

Posted: Sun Aug 20, 2017 12:50 pm
by PyTom
I need to look into this. It's possibly a problem parsing the say statement.