Page 1 of 1

[Solved] Noise above transition?

Posted: Sat Nov 04, 2023 12:27 am
by simba975
It's a bit hard to explain why I want this like this, but basically I'm making a cinematic, and I want a custom fade transition to go under the custom "noise" layer, which is a layer that is used to constantly show multiple semi-transparent noise images to create the illusion of noise. I want this because the fade makes the noise go for a moment. Here is my current code:

Code: Select all

define config.layers = ['bg', 'effect', 'master', 'transient', 'screens', 'overlay', 'noise']
define fadep = Fade(0.25, 0.0, 0.172916)

    scene
    show noise onlayer noise
    show cinematic2
    $ renpy.pause(10.268748)
    with fadep
    show tx02y01s30cps20 "I feel a bit dizzy" at blurout
    $ renpy.pause(3)
    hide tx02y01s30cps20
    with fadep
    $ renpy.pause(13.691664)
    ""
Edit: Solved. Solution was using Dict Transitions, though you do need to put some extra pauses, because they are independent on everything else and won't work as a transition but more like a short video for so to say. New code:

Code: Select all

define fadepalt = { "overlay" : Fade(0.25, 0.0, 0.172916) }

    scene
    show noise onlayer noise
    show cinematic2
    $ renpy.pause(10.268748)
    with fadepalt
    $ renpy.pause(0.25)
    show tx02y01s30cps20 "I feel a bit dizzy" at blurout
    $ renpy.pause(3)
    with fadepalt
    $ renpy.pause(0.172916)
    hide tx02y01s30cps20
    with fadepalt
    $ renpy.pause(13.691664)
    ""