At the moment, I have a movement routine for an enemy worked out to follow a straight line between two points, using y = mx +c.
I want to make it also move in a sine wave sort of pattern, but along that line...
I can only think of how to make things move in a sine wave along a horizontal or vertical line though.
Anyone have any ideas as to how I'd go about doing this?