Oh, try using this.pos.y instead. I believe the body position is one that's relative to the entity. So the entity has its own "world" or "relative to parent" position. The body is the physics body relevant to the entity. Which maintains velocity and movement so you can update the position of the entity.
On Tuesday, November 22, 2016 at 2:44:59 PM UTC-5, Noah Swainland wrote:
> Yeah, basically I'm working on an improved version of an experimental javascript game I made, i Am a Cow. You can fly around and stuff. On my new version, I flew up so that the cow went off the screen, but they always came back on again.
>
>
> So are you saying that I can use this.body.pos.y? Or is that why it doesn't work?
>
>
> Thanks, Noah
>
> On Tuesday, November 22, 2016 at 7:36:13 PM UTC,
aaron.g...@gmail.com wrote:We you able to bring the player back or something? curious how you know it didn't disappear :)