- Joined
- Sep 9, 2009
- Messages
- 658
So I'm reading Daelin's tutorial about spirals and I have a few questions.
What does he mean 'elements'? The first equation is to find out how far the spiral should be from the position of the center right? Why does he multiply 8 by integer A? He divides 360 by 7 because there's 7 'lines' that move from the center? What's with the 6 near the end of the equation?
-
For each (Integer A) from 1 to 20, do (Actions)
-
Loop - Actions
-
For each (Integer B) from 1 to 7, do (Actions)
-
Loop - Actions
- Unit - Create 1 Missile for Player 1 (Red) at (CENTER offset by (100.00 + (8.00 x (Real((Integer A))))) towards (((360.00 / 7.00) x (Real((Integer B)))) + (6.00 x (Real((Integer A))))) degrees) facing CENTER
-
Loop - Actions
-
For each (Integer B) from 1 to 7, do (Actions)
-
Loop - Actions
To explain, 20 from the first loop represents the number of elements per spire. 7 from the second loop represents the number of spires.
What does he mean 'elements'? The first equation is to find out how far the spiral should be from the position of the center right? Why does he multiply 8 by integer A? He divides 360 by 7 because there's 7 'lines' that move from the center? What's with the 6 near the end of the equation?