[Solved] Easein transitions and fading

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
yuucie
Regular
Posts: 164
Joined: Sun Jun 22, 2014 4:04 am
Completed: NaNoReNo[2015] Those Without Names
Tumblr: an-na-ko
Location: Toronto, Canada
Contact:

[Solved] Easein transitions and fading

#1 Post by yuucie » Thu Jun 26, 2014 1:25 pm

I've been trying to get chars to ease in when moving into the screen with easeinleft etc. commands, but also fading in while doing so.

Since easein transitions and dissolve commands don't stack together (i.e. renpy runs through 1 command first and then completely ignore the other), I've done this as a workaround:

Code: Select all

   
 show Emily neutral:
        xalign 0.5
        alpha 0.0
        linear 1.0 alpha 1.0
with easeinleft
which so far works nicely until I use the skip function. the skip function causes chars to fade in halfway (or just a third of transparency) and then freeze, and if I pause skipping, the character remains transparent for the entire scene. I assume skipping through text passes over the alpha and linear commands, causing a ghost like effect to happen.

My question is, is there an easier way to merge easein transitions with dissolve without having chars get stuck in alpha changes during skipping? Thanks!
Last edited by yuucie on Thu Jun 26, 2014 3:25 pm, edited 1 time in total.

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: Easein transitions and fading [alpha freeze during skip]

#2 Post by Donmai » Thu Jun 26, 2014 2:46 pm

Try it using ATL only

Code: Select all

   
 show Emily neutral:
        offscreenleft
        alpha 0.0
        easein 1.0 xalign 0.5 alpha 1.0
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
yuucie
Regular
Posts: 164
Joined: Sun Jun 22, 2014 4:04 am
Completed: NaNoReNo[2015] Those Without Names
Tumblr: an-na-ko
Location: Toronto, Canada
Contact:

Re: Easein transitions and fading [alpha freeze during skip]

#3 Post by yuucie » Thu Jun 26, 2014 3:25 pm

Donmai wrote:Try it using ATL only

Code: Select all

   
 show Emily neutral:
        offscreenleft
        alpha 0.0
        easein 1.0 xalign 0.5 alpha 1.0
Thanks! What do you mean ATL only though?

I found this line of code in an older thread, and it works beautifully too.

Code: Select all

define dissolveleft = ComposeTransition(dissolve, before=easeoutright, after=easeinleft)
define dissolveright = ComposeTransition(dissolve, before=easeoutleft, after=easeinright)
Thanks for the help!

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: Easein transitions and fading [alpha freeze during skip]

#4 Post by Donmai » Thu Jun 26, 2014 4:23 pm

yuucie wrote:What do you mean ATL only though?
Animation and Transformation Language (http://www.renpy.org/wiki/renpy/doc/ref ... n_Language) code usually doesn't interrupt game flow. That's the problem you have found with the old transitions.
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: Google [Bot]