Game Development Community

Sine wave for ship movement

by Garth Howell · in Torque Game Builder · 06/13/2005 (1:38 am) · 2 replies

Hi

Is there an easy way to implement a sine wave for a ship's movement ?
If you can imagine a classical side-scrolling ship blaster game with the enemy ships flying onto the screen following a sine wave.

Garth

About the author

Recent Threads


#1
06/13/2005 (3:16 am)
Take a look at the shooter demo, I'm pretty sure that uses sine waves for enemy ship movement.
#2
06/17/2005 (12:27 pm)
I was taking a look at that. It looks like a "waveform" object is created and the enemy ship is mounted to it. I'm a little feeble, so could someone be so kind as to explain how this works.