How do you make a lightning stroke in a story?

Hey so i want there to be a lightning strike but idk how to get it to be not in the start of a new background (If you get it) i have the overlay if anyone can help me that would be great!

This is the overlay

i know it looks a little rough but that was just a skecth

2 Likes

To make the overlay appear during a scene.

First create the overlay with this code:
@overlay OVERLAYNAME create

Then place the overlay in the right spot:
@overlay OVERLAYNAME shifts to 100 100 in zone # in T
@overlay OVERLAYNAME scales to 1.0 1.0 in T

Then use opacity to make it smoothly appear.
@overlay OVERLAYNAME opacity 1 in T

T = time (seconds)

If you want it to look like a real lightning strike, use this in your script: (Just change LIGHTNING to the name of your overlay)

&overlay LIGHTNING create

Shift your overlay using what IsabelleV said

&overlay LIGHTNING opacity 100% in 0.07 then overlay LIGHTNING opacity 0% in 0.07 then overlay LIGHTNING opacity 100% in 0.07 then overlay LIGHTNING opacity 0% in 1 then overlay LIGHTNING opacity 0.1% in 1 loop INFINITE times

1 Like

Could you write it as if you wrote yourself in a script?

Sure! This is a part of my script where I’ve used thunder:
(I didn’t have to use shifts & scales though, because my lightning png was immediately placed correctly on the screen)

sound thunderclap

&overlay THUNDER create
&overlay THUNDER opacity 0
&overlay THUNDER moves to layer 2
@overlay THUNDER opacity 0.4 in 0.8
@overlay THUNDER opacity 0 in 0.4

[ some things happening here before the next thunderclap ]

sound thunderclap

@overlay THUNDER opacity 0.4 in 0.8
@overlay THUNDER opacity 0 in 0.4

[ some things happening here before the next thunderclap ]

sound thunderclap

@overlay THUNDER opacity 0.4 in 0.8
@overlay THUNDER opacity 0 in 0.4

If you’d like to use my lightning png, you can find it in my google drive:
https://drive.google.com/drive/folders/19mY_8D7VdLtPPNlKjzo9iWiCRbxn5hz_?usp=sharing
If you use it, please make sure to credit me [ @isabelleV.episode on IG ].

Thank you so much

1 Like

You’re welcome! :slightly_smiling_face:

Hey it isn’t working what is it i did wrong?

1 Like

Can you post a screenshot of your script?

Ok but I can’t sent it right now so in a few hours you’ll get it

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.