Page 1 of 1

How to show a side image most of the time? (SOLVED)

Posted: Wed Mar 04, 2015 2:45 am
by Shades of Night
I've managed to get a side image working to show my main character on the left side of the screen above my textbox... But that image only shows when the character associated with it speaks. I want it to stay showing while other characters are speaking and during narration.

Currently I'm using

Code: Select all

    define h = Character('Hazel', image="mainc")
and

Code: Select all

    image side mainc = ("TTBtempC2.png")
to get it to show.

Is there something I can change or another way to do this so that the image will stay showing?

Re: How to show a side image most of the time?

Posted: Wed Mar 04, 2015 7:18 am
by trooper6
I'm no expert on this sort of thing, but if you want an image to be up all the time--i.e. not tied to who is speaking--why don't you just show the image like you'd show any other image and just place it where you currently have your side image?

Re: How to show a side image most of the time?

Posted: Wed Mar 04, 2015 9:01 am
by Donmai
If you decide to simply show the image, as trooper suggested, remember that it will appear under your UI elements. If you want it to appear over your dialogue box like a normal side image, try using show onlayer. I haven't tested it, but something like

Code: Select all

show eileen onlayer overlay at left
should do.

Re: How to show a side image most of the time?

Posted: Wed Mar 04, 2015 12:34 pm
by philat
You can also edit the say screen, in case you don't want to show and hide the image to adjust for whether the say screen is visible or not. The say screen uses a function to determine whether and which side image should be displayed, but you can edit it to just add the main character's image.

Re: How to show a side image most of the time?

Posted: Wed Mar 04, 2015 2:01 pm
by Shades of Night
Yep, the way my textbox is I do need to have the image appearing over the textbox.

Okay, tried show onlayer and it does show, but seems to vanish after a few seconds- Actually, I just took the image out of the speaking characters define thing and now the onlayer image doesn't vanish after a few seconds, however it does go as soon as a character starts speaking (my first line is narration).

So the say screen, let's see...

I've changed side_image=None to side_image=True and have

Code: Select all

    if side_image:
        add "TTBtempC2.png" xalign 0.0 yalign 1.0
To point to the image. It seems to be doing the same thing that the onlayer image was doing, vanishing a few seconds after I've started- hmm, results appear to be mixed. If I move the mouse as soon as I press start then the side image vanishes. If I leave it still for a bit first then the image stays. If it stays then it does the same thing as the onlayer image and vanishes as soon as someone starts talking.

Edit: Ah, I may not have saved the file when I switched from the onlayer image to say screen. Just did and now no image appears (so I'm guessing the above was the onlayer image still being there). Guessing that side_image=None needs to be something other than True? (since it says None and not False as the default).

Edit edit: Finally! Found a way to do it <3 I found this post which has a problem with exactly what I want to do. So I popped 'config.side_image_tag = "felenoira"' of the problem code in, and it works! My side image is staying there during narration and other characters speaking :D