Code not working

I need to get the enemy to turn around when it hits a wall, like a Goomba, but it doesnt and it just walks into a wall. I think i have the right code but it isnt working. How do I fix it?
Screenshot 2023-10-20 152348

If you’re using a point named “WallCheck” then you need to use PointX(“WallCheck”) and PointY(“WallCheck”)

The conditions are currently using 0 for Y() which is at the top of the screen.

thx but im currently taking a small break so ill get back to u if it works

1 Like