# Scalex and player body doesn't have same position

**URL:** <https://phaser.discourse.group/t/scalex-and-player-body-doesnt-have-same-position/1065>\
**Category:** Phaser 3\
**Created:** [February 3, 2019, 7:01pm UTC](https://phaser.discourse.group/t/scalex-and-player-body-doesnt-have-same-position/1065 "2019-02-03T19:01:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![afshinizadi](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@afshinizadi](https://phaser.discourse.group/u/afshinizadi)\
**Post date:** [February 3, 2019, 7:01pm UTC](https://phaser.discourse.group/t/scalex-and-player-body-doesnt-have-same-position/1065/1 "2019-02-03T19:01:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Telinc1](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/telinc1/32/60_2.png) [@Telinc1](https://phaser.discourse.group/u/Telinc1)\
**Post date:** [February 3, 2019, 7:19pm UTC](https://phaser.discourse.group/t/scalex-and-player-body-doesnt-have-same-position/1065/2 "2019-02-03T19:19:14Z")

</div>

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