I see that in many tutorials, for instance, a snail that simply move back and forth are being directed by invisible object to turn back and forth.
However, I am looking for something tiny bit different. I want the enemy to move toward the player's X value position. I don't need the Y coordinate part. My enemy does not have to be that smart. But it will try to go to this player's X position and it will have gravity to drag it down and does not fall through solid objects.
What should I do to achieve this?