how to make a sprite follow other sprite only lateral and not vertical

i need this please.

1 Like