Pathfinding in squiggly motion

I want my enemy to path find to the player in a squiggly motion. The game is a 2D shooter, so the path finding adjusts to player movement while keeping the squiggly motion.

I assume I’d use the path finding behavior just I don’t know the math equation or the things needed to make it work.

I attached a drawing example of what it would look like:

The pathfinder calculates the shortest path unless objects have the obstacles behavior then it calculates the shortest path around the obstacles. I don’t think the pathfinder is an option.

I have no idea how to do a serpentine like movement. Do you want the object to turn with the curve or face the player.

if you use speed and Travel T o Random Positions extension you enemy should move but i do not know how to move in a squiggly motion
GDevelop 5 - C__Users_DLigh_OneDrive_Documents_GDevelop projects_My project_Lake Veiw California.json - Your computer 1_24_2025 12_54_13 PM