Ok I will try to write a code for this , but what are a,b,c,d and e?
Dummy objects like:
Dummy_a
Dummy_b
Dummy_c
Dummy_d
Dummy_e
I started like this:
Init_Lightning_effect:
Global dummy as integer
Global distance as integer
Global a,b,c,d,e as integer
dummy=1
distance=20
Make Object plane dummy,1,1
Return
Is correct so far?
Then in my gameloop I will have another gosub label:
Lightning_effect:
rem Here there will be the lighning update code which I don't understand yet
distance=distance/7
a=distance*2
b=distance*3
c=distance*4
d=distance*5
e=distance*6
Position Object dummy,10,10,10
Point Object dummy,20,20,20
Move Object dummy,a+rnd(3)+1 `actually this is the speed of the object
rem Quitting after this point :(
Rem after that I am confusing and I don't know how to translate the pseudo code to real 3D code because I don't know the 3D commends yet :(
Sync
Return
I will call the initialization code first when the game starts.
And in the game loop I will update constantly the lightning effect.
This is my preparation code.
I have one little problem , I don't know the 3D commands of DarkBasic yet , I don't have tried to create any 3D game yet , I mean real 3D.
But am I in correct road?