==============================================
I bring my apologies once again, but the script from Stierlitz with a frustum, while you can not use it for commercial purposes - until it is in the affirmative - CC BY 3.0 license…
It seems there is a small code, but it’s better to beware, and to find solutions based on standard Python API help
==============================================
You have 3 options.
1: Add a plane with an object color animation that fades out to a seperate scene, add this scene as an overlay when there is a flash.
2: spawn a plane infront of the camera with a similar animation as mentioned above
3: use a 2d filter, here is a quick demo I made. Use the “myprop” variable (on the cube) to change the amount:
.blend: flash example.blend (84.6 KB)
glsl:
The answer to all of your questions is: Properties.
You might want to delve into BGE more until you get then hang of them.
But basically the float ‘myprop’ game property controls how much of the effect is in place (check the logic). This means you can directly determine how much of the effect there is.
You can shut down a shader by disabling the filter pass number associated with the filter.
Hi man again.
I looked at the “properties”, and found a solution with a timer, I now have a starting/end flash (looks good), and a flash on the sensor.
Maybe you would have solved this question differently.
But with the color settings, I have not yet found a solution.
Can you tell me how to add color settings, please? And to solve the problem with turning away from the grenade.
And one more question - the “timer” property always works, does this not reduce the system’s performance?
Hi everyone.
That’s done almost completely … but not solved with turning away and/or when the grenade is behind the barrier (changing the grenade_direct game property to 0), so that the flash does not turn on.
Can anyone know how to solve such a problem?
Thanks!
p.s.the sound of an explosion from a real grenade.
Flash grenade is ready. Who is interested, here is the link -!!!
A little python script, and everything works.
Special thanks to Stierlitz from Blenader Ukraine, for the script with “Frustum”
If “Vid”, it’s “video” - I already added at the beginning of the Thread.
If you want an example video with color settings? - After an example of color adjustment.