Move a flying enemy up and down in mid air,

Trying to move a flying enemy up and down in mid air, this is for a plateformer?

Looked a lot of places couldn’t find the answer. Tried adding force angle at 90 degrees, not doing anything to the object.

I haven’t tested this, but what if you set it to move to [enemy name].Y()+[amount of pixels] and the same but -?

For example, if your enemy was named…uh…reaper, it could be:
move to position reaper.Y()+100, then when it gets there move to reaper.Y()-100?

An example is included with GD called “move object back and forth”.
https://editor.gdevelop-app.com/?project=example://move-object-back-and-forth