[SOLVED] Help with Enemy Movement

You’re not changing the direction variable at collision?

thank you jack i have fixed it now