playswithtribbles wrote:Does anyone know how to make a character side image (the pic that shows up next to the text on the bottom) dissolve in every time it appears?
I'm not sure it'll work, it's untested, but one thing you could try would be defining each of your side images as an ATL image that dissolves in, something like:
Code: Select all
image side bob smile:
"bob_side_smile.png" with Dissolve(0.5, alpha=True)
$ bs = Character("Bob", show_side_image="side bob smile")
- I'm thinking that with a bit of luck (I've not checked) the side-image will be shown with the same tag all the time, meaning that this will naturally dissolve the old one out of the way. It could also be worth making sure that the first part of the image name is the same for all side images, since that's what's used to determine if there's already an image drawn that's supposed to be replaced.
Now, the above quite possibly won't work, depending on how the side-image stuff is implemented. As a not-quite-the-same-but-maybe-better-than-nothing alternative, you could try building the dissolve effect into the image itself with ATL manipulation of alpha:
Code: Select all
image side bob smile:
on show:
alpha 0.0
linear .5 alpha 1.0
on hide:
linear .5 alpha 0.0
- that produces an image that - when shown - fades in from nothing over the course of 0.5 seconds, and when hidden, fades out again over 0.5 seconds. Again, I've not tested it (I don't have the chance to run Ren'Py right now) but I would hope that when the image is hidden, the ATL kicks off but Ren'Py immediately moves on to the next thing to do - in this case, showing the next side image - so you'd see one fading out and one fading in at the same time. Which - if it works - isn't quite the same as a dissolve, but it's pretty close and I doubt most people would notice the difference in half a second.
Aleema wrote:Having the images dissolve will make the text box disappear while it does it's transition. That would be more jolting, trust me. =P
If you check
this cookbook recipe, it suggests you can keep the window shown during transitions just by setting 'store._window_during_transitions' to True. This is what I did with
Each Uisge, and for the most part it seemed to work fine.
(The caveat would be that the window would continue to be shown through all other kinds of transitions, for example when changing scene, but personally I don't think that's a bad thing.)