I am trying to program a boss to move back and forth across the screen and then swoop down to attack the player position. It doesn't need to continue to track the player (this is phase one of the boss). I'm not sure how I would go about doing this. I have attempted to use a combination of sine and moveto with no success and felt like I was getting somewhere with a timeline followed by a moveto, but also didn't have luck there.
youtu.be/DGk6YCtxq5c
The video is a rough approximation of what I'm hoping for. With the player character moving obviously, then the boss would move back to its original back and forth pattern once the attack is done.