Ren'Py Coding transition help

Uncle Loco

Engaged Member
Game Developer
Apr 28, 2020
3,620
11,355
Looking for some help on a few transitions I am trying to figure out how to do in renpy.

1. I am trying to slowly fade one image into another image. I am looking to do this when the user makes a click for it to happen in one motion if possible without multiple clicks.

2. I am trying to figure out how to create a flash (like lightning) in between two images. I am looking to do this when the user makes a click for it to happen in one motion if possible without multiple clicks.

These are the last few items holding back the release of my first VN so any help would be greatly appreciated.
 

79flavors

Well-Known Member
Respected User
Jun 14, 2018
1,611
2,258
Python:
define flash = Fade(0.1, 0.0, 0.5, color="#fff")
define slowfade = Fade(1.0, 0.1, 1.0)
define slowdissolve = Dissolve(2.0)
define vslowdissolve = Dissolve(3.0)

label start:

    scene black
    centered "Text on a black screen."

    scene picture001 with flash
    centered "picture 1 was shown with a lightning like flash."

    scene picture002 with slowfade
    centered "picture 2 replaces picture 1, using a very slow fade transition."

    "*** THE END ***"

    return