Create and Fuck your AI Cum Slut -70% OFF
x

Renpy : flash and punch effects. how to?

Cohibozz

Member
Game Developer
Aug 14, 2018
133
79
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
581
1,092
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
 

Ocapity

New Member
Mar 17, 2024
2
4
You can use renpy transitions:


"with vpunch" for shake effect

and for flash effect, first define flash:
define flash = Fade(0.1, 0.0, 0.5, color="#fff")

and then use it with:
"with flash"
What are the numbers?: Fade(out_time, hold_time, in_time, *, color='#000')
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
12,336
19,777
What are the numbers?: Fade(out_time, hold_time, in_time, *, color='#000')
  • out_time, duration of the fade out effect;
  • hold_time, delay between the end of the fade out effect and the fade in one;
  • , duration of the fade in effect;
  • , color to which, and from which, the fade will be done.