Hello!
Im currently trying to code a new enemy for my 2d space shooter game. It should be a chain that osciallte from left to right.

Hope this graphic helps you to understand what i want to to.
I tought it should be possible with Sin/Cos Commands. But it won't work the way i want it to. Here is the code:
Im currently trying to code a new enemy for my 2d space shooter game. It should be a chain that osciallte from left to right.

Hope this graphic helps you to understand what i want to to.
I tought it should be possible with Sin/Cos Commands. But it won't work the way i want it to. Here is the code:
Graphics 800,600 SetBuffer BackBuffer() While Not KeyDown(1) Cls tt=tt+1 If tt>360 Then tt=0 For i=0 To 50 Plot 400+Sin(tt)*i,50+i*10+Cos(tt)*i Next Line 400,50,400,600 ;Axis Flip Wend