
-----------------------------------
Majesty
Fri Oct 24, 2003 4:34 am

Help me with Randomized Lightning Bolts! :p
-----------------------------------
Hey guys, just trying to figure out alittle problem, hopefully you'll beable to answer me sometime today, anyway here it is

im trying to make randomized lightning, coming from the top of the screen, these is what i have so far, its saying x has been previously declared, but if i take out var x:real then it says x has not been declared

%lightning bolt
var lightning:real
var y:int:=399
var r1,r2:int
var x:real

for x:-2..340
end for

for size:5..8
end for


Draw.ThickLine(x,y,502,361,size,yellow)
Draw.ThickLine(x,y,515,349,size,yellow)            