How to disable Y coordinate for pathfinding on gdevelop?

How do I…

how to disable Y coordinate for pathfinding on gdevelop?

What is the expected result

The enemy must move only along X in the pathfinding function, Y must be disabled.

What is the actual result

I saw something in the pathfinding settings, but I don’t think it’s what I need there.

Can you explain why you want to go just left and right? There may be more efficient ways of doing it than with the Pathfinder.

You could put a hidden long pathfinder obstacle above and below the enemy. But I’m not sure why