Raycast , moving to the Left side not working

Hello ,

I am new to the community and I hope to find help with this:

I literally copy pasted the Raycast function from here Board walk with raycast - a game example from the GDevelop game making app | GDevelop

It works when I move the Player on the right, but never on the left XD

It is driving me crazy! Any idea what should I adjust ?

Thanks!

Hi and welcome here :slight_smile:
Make sure the origin point of your Player is in the center, like in the example:

Either as @gruk wrote, or raycast from the Player.CenterX() and Player.CenterY()