Transitioning side image expressions

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
Jae
Regular
Posts: 192
Joined: Sun Sep 13, 2015 5:41 pm
Projects: Pokémon Academy Life
Location: New York, NY
Contact:

Transitioning side image expressions

#1 Post by Jae » Thu Nov 26, 2015 3:54 pm

Happy Thanksgiving to those who celebrate.

Currently I'm doing fine with transitioning character expression changes with:

Code: Select all

transform replace:
    on replaced:
        alpha 1.0
        linear 0.25 alpha 0.0
    on replace:
        linear 0.25 alpha 1.0
However, I'm trying to do this with side images and can't seem to make it work. Defined something like:

Code: Select all

image side red norm:
    im.Scale("Characters/Red/red neutral.png", 680, 1200)
    on replaced:
        alpha 1.0
        linear 0.25 alpha 0.0
    on replace:
        linear 0.25 alpha 1.0
All the side images do is change instantaneously rather than transition.

I've also tried "on show" and "on hide" instead, but that causes the side image to flash on every change, including when facing a {w=time} tag during dialogue.

I've tried defining each side image using "with Dissolve," but still no go.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Transitioning side image expressions

#2 Post by Donmai » Thu Nov 26, 2015 7:29 pm

Thanksgiving? What's that? (Only kidding) I know it has something to do with the slaughtering of turkeys. Here in Brazil turkeys are safe. Today is like any other day, except it's my birthday.

There have been some discussions on transitioning side images:
http://lemmasoft.renai.us/forums/viewto ... =8&t=26335
http://lemmasoft.renai.us/forums/viewto ... =8&t=23952
The first thread is marked as "80% solved". Maybe it's time to bring in the other 20%?
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Jae
Regular
Posts: 192
Joined: Sun Sep 13, 2015 5:41 pm
Projects: Pokémon Academy Life
Location: New York, NY
Contact:

Re: Transitioning side image expressions

#3 Post by Jae » Thu Nov 26, 2015 10:53 pm

Happy birthday! The turkey slaughter will begin tomorrow for me. Today was just a simple family dinner.

http://lemmasoft.renai.us/forums/viewto ... 51&t=26612

It seems like this one is addressing fading side images, which is what I want.

But dear god, I can't make heads or tails of that code right now so I'll have to take the time to tinker with it.

Edit: I believe I have it figured out. I did have to move a character's sprite off-screen so only the side image is available. So far there haven't been any issues, but I'll have to keep a really close eye on this.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Transitioning side image expressions

#4 Post by Donmai » Fri Nov 27, 2015 6:09 am

Yep, there are more exaustive explanations here: http://lemmasoft.renai.us/forums/viewto ... =8&t=27113
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Transitioning side image expressions

#5 Post by Donmai » Sun Nov 29, 2015 1:56 pm

Doubleposting (sorry) only to add that transitioning side images has become (finally) easier: http://www.renpy.org/dev-doc/html/chang ... transforms
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], _ticlock_