FAQ  •  Register  •  Login

Lightning

<<

tazinator

Posts: 352

Joined: Fri Jul 05, 2013 7:35 pm

Post Tue Mar 11, 2014 4:21 pm

Lightning

Im working on making a lightning levelgen. There will be 2 versions
One will be 'natural' lightning, and the other a weapon :o

I have been compared to a very determined person riding a bike through a brick wall. the code below hasn't even been started yet, would like suggestions

  Code:
-- LIGHTNING
-- By Thomas of Hilo


--[[ Plan is to create a lightning simulator for Bitfighter. Lightning will cause damage to whomever it hits.
A way of achieving this goal has not yet been figured out. Suggest
using math.random to determine the next coordinate for lines with for loops. Need to devise a way to make it look like lightning and not totally random by going back and hitting itself where it started
Use zones to determine limits of lightning. Use ID to control a broad path of lightning

]]--
Play my new level! Two different teams fight over a nexus: One mainly defends while the other attacks! is fun
viewtopic.php?f=33&p=21002#p21002
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Tue Mar 11, 2014 9:29 pm

Re: Lightning

Oooooo fancy :) I guess you could have a bunch of white (neutral) lines for the lightning. Looking at a picture of a real lightning might help out for the randomness
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 11 guests

cron