Newbie here, How to make an actor move up and down continuously

Hello, I'm a newbie with GameSalad. I'm making a space side scrolling shooter. I can spawn an enemy actor to move straight from right to left.
Question is how do I make the enemy ship move from right to left while also moving up and down continuously? Or even moving up and down while staying in one place on the X axis. Thanks in advance!
Question is how do I make the enemy ship move from right to left while also moving up and down continuously? Or even moving up and down while staying in one place on the X axis. Thanks in advance!
Comments
Thanks!!!
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Constrain position Y to AAA*cos(self.time*BBB)+CCC
AAA= range of movement
BBB= speed of movement
CCC=centre point of movement
Example:
Constrain position Y to 100*cos(self.time*100)+150
This would give you an up and down movement from 50 to 250 to 50 to 250 to 50 . . . . . . etc etc
Tynan, thanks for the help man. I'll try it out right now! I'll let you know how it goes!
Ok so what you gave me worked, but it's always using the +150 as the center point correct? So if I spawn my actor at y = 250, as soon as it spawns it jumps to 150 then moves up and down from that center point.
Maybe I'm not getting this, I'm confused...I'm not a programer after all...just an artist...
I'm basically it doesn't matter from what position I shoot, the bullet will always jump to 150 then starts to animate.
If there a way to use the actors own real time position to be used as the center point of this animation?
Ah ! There I've said it, I feel kinda' dirty now, I need a bath.