Renpy : flash and punch effects. how to?

Cohibozz

Member
Aug 14, 2018
125
27
in some game when the mc have to fight the punch he received shake the screen.
or a flash light effect on screen

to do it there is a simple mode or i've to do a transition scene to simulate it?

there is someting ready to use ? all i find is outdate
 

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,061
For a flash of white across the screen (I use it during sex scenes for when an orgasm happens)
Code:
image whiteflash:
    Solid("#fff")
    alpha 0.0
    linear 0.25 alpha 0.8
    linear 0.75 alpha 0.0
    linear 1.0 alpha 0.8
    linear 0.25 alpha 0.0
And when I want it to happen I use
Code:
show whiteflash zorder 50
I didn't try to make it a transition because I tend to have one running on an image already.
 
Nov 21, 2020
21
9
For a flash of white across the screen (I use it during sex scenes for when an orgasm happens)
Code:
image whiteflash:
    Solid("#fff")
    alpha 0.0
    linear 0.25 alpha 0.8
    linear 0.75 alpha 0.0
    linear 1.0 alpha 0.8
    linear 0.25 alpha 0.0
And when I want it to happen I use
Code:
show whiteflash zorder 50
I didn't try to make it a transition because I tend to have one running on an image already.
Brother I want to decrease the time period how to do this please tell me