#What am I doing wrong?

15 messages · Page 1 of 1 (latest)

spark panther
#

Raycast could be colliding with players body

#

Check collision masks and layers

lunar river
astral kayak
#

Shot in the dark, but maybe your scale.x = 1 and scale.x = -1 might cause an issue?
From the docs:

lunar river
#

I thought that's how you're supposed to do it?

astral kayak
#

I don't know if that counts for Raycast2D to be honest..

#

You could flip only the sprite using sprite.flip_h

#

and then you'd have to reposition the raycast so it's on the other side

lunar river
#

Or that

astral kayak
#

Nah you can do raycast.position.x = -raycast.position.x

#

(probably)

lunar river
#

I'll try that then

lunar river