Jump to content

[2.0.7] Setting World.x and World.y doesn't work (reset every update?)


Red Spark
 Share

Recommended Posts

Hello there  :)

Seems like World coordinates are reset to (0, 0) somewhere in Phaser code so I can't set them manually. But World.rotation is fine.

I can set World.x or World.y only setting them explicitly in console, but once I click back, the game gets unpaused, and the World coords get reset.

Is it a bug or I'm doing something wrong? How do I set World coords manually?

 

Link to comment
Share on other sites

Ok, seems like one should use Camera.x and Camera.y for moving around the world, but still use World.rotation for turning around.

Would be nice to have Camera.rotation for consistency.

Problem solved.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...