Gah, stupid lightning
#11
Dont take it bad, but i love rain, its so calming!!!
Reply
#12
OMG, I love rain even more...so peaceful
Reply
#13
I <3 storms. Just as long as it's not a snowstorm. God, i'm so sick of those.
[Image: icnrpi.gif]
[Image: 27886.png]
Reply
#14
(04-10-2011, 05:20 AM)Twinmold Wrote: I <3 storms. Just as long as it's not a snowstorm. God, i'm so sick of those.

I couldn't agree with you more, Im sick and tired of the cold period.
Hello
Reply
#15
[/lua]
(04-10-2011, 05:15 AM)Scripter Wrote:
(04-10-2011, 05:14 AM)toast Wrote: Nu you have to make lightning out of yellow Boxes so it's randomer and more realistic

xD

But, if you're going to have a lot of lightning strikes...THAT WILL BE A LOT OF MATH THAT I DON'T KNOW HOW TO DO.

What you do is you choose the X that the lightning will strike at, then you choose how many points there are, then you keep making points at X + randomnumberhere so that way it's random, then you make a function for making parts that are a line from one place to another (this might work)
[lua]function line(from,to,thickness)
local p=create("Box")
p.Position=from:add(to):divide(2)
p.Size=Vec2D((from.x^2+from.y^2)^0.5,thickness)
p.Rotation=math.atan2(from.y-to.y,from.x-to.x)
return p [/lua]
I think the atan2 is screwed up but oh well
[Image: 5widdh.png]
Siggy by McNoobster!
[Image: loading.gif]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)