How to make a point move in one direction?


I came up with the idea of projectile moving with a wave trajectory, this code makes it move up and down, but how can i move it forward?
The only way i thought about is to move Top/BottomPos (both are Scenes) in one direction,but how can i do that?

Well, i figured out and made this func


It makes projectile move in any direction