Scalex and player body doesn't have same position

phaser version 3.11.0

when I’m trying to flip walking by player.scaleX = -1; the body goes out to the right about a player width, so the body and spirit don’t have the same position therefor the collision doesn’t work correctly.

there were some solutions for older versions so those didn’t solve the issue

Try using flipX (which is a boolean) instead of scaleX.

2 Likes