enemy wave.. almost there HELP!

BlitzMax Forums/BlitzMax Programming/enemy wave.. almost there HELP!

To make them start in a wave instead of a line,
Change the line:

t.y = 240

To:

t.y=240 + 80*Sin( 1*(i/count)*360)

Where 80 is the altitude (height) of the wave (you pick). If you want the wave to be longer alter my 1* to something smaller like 0.5

Also to make this work you have to set "i" to a float or double: For i# = 1 to count

Hope that's solves it. I might have gotten you wrong :)