Page 1 of 1

lightning.lua: Thunder Effect

Posted: 2 Jul 2019, 6:05
by Yingchun Soul
2019-07-02_11_01_12.gif


lightning.7z
(704 Bytes) Downloaded 616 times


Put local lightning = require("lightning") to load the Lib

Functions:

lightning.mindelay = Mininum Delay for lightning effect. Default: 32
lightning.maxdelay = Maxinum Delay for lightning effect. Default: 324
lightning.priority = Priority of the lighting effect. Default: -99.9
lightning.speed = Fading speed of the lighting effect, the lower number, the fast speed. Default: 40
lightning.section = Section for lightning effect. Default: {0,1,2,...,20}