Using the sine effect, is there a way to have the horizontal movement go forward a certain amount and the go back?
In other words, without any special commands, the sine effect moves my sprite back and forth horizontally. Unfortunatley, in moves it back and forth the same distance forward and backward.
Can I set sine so that it moves forward a certain amount and moves backwards a different amount?
What I'm getting at is that I want a sprite to "peek" out behind another sprite. It moves forward and "peeks" out fine but then it sways in the other direction "peeking" out the other side.
I just want it to "peek" out in the forward direction and then move back behind the other sprite.