I like the idea of this script and something like this will definetly be really useful to have.
But I would actually prefer if the intervalls between the lightnings would be randomized. (Also, in reality you don't always hear the thunder in the same moment you see the lightning, depending on how far away the lightning was. Though, I think it isn't the best idea to go for realism sometimes..) So all I'm suggesting basically, is to make the delay between the lightnings randomized, with a LIGHTNING_DELAYMIN and LIGHTNING_DELAYMAX.
Lightning/Flash Effect
Overview
Creator:
Demonlink
Added: 07 Jul 2015
Tags:
FFC,
Misc
Downloads: 45
|
View Script
Download Example (1.67 MB) |
Information
A simple script that simulates a lightning effect with an SFX. Useful so you don't have to calculate the frames until the SFX and flash sync together
Description Setup Reviews Comments
VERSION A:
const int LIGHTNING_DELAY = 0; //Delay in frames until the effect repeats itself.
const int LIGHTNING_SFX = 0; //SFX to use. Self explanatory.
const int LIGHTNING_LAYER = 0; //Layer to draw the rectangle to. (Needs to be used by the screen).
const int LIGHTNING_COLOR = 0; //The rectangle is drawn using the specified index into the entire 256-element palette: for instance, passing in a color of 17 would use color 1 of cset 1.
VERSION B
The version that's not plug and play.
Arguments are as follows:
D0 is the delay in frames until the effect repeats itself.
D1 is the SFX to use. Self explanatory.
D2 is the Layer to draw the rectangle to. (Needs to be used by the screen).
D3 is the color of the rectangle using the specified index into the entire 256-element palette: for instance, passing in a color of 17 would use color 1 of cset 1.



