Jump to content

using createfromobjects to make objects that are rotated


TheBlackSword
 Share

Recommended Posts

I'm making a game in Phaser using Tiled for level design. However, when I rotate objects in the object layer and use the createfromobjects function to generate those objects in the game itself, the x and y positions have been messed up. I've taken screenshots to demonstrate: 

In Tiled

In Phaser

How do I solve this? Is this a known bug with the current version of Phaser? 

Link to comment
Share on other sites

  • 2 weeks later...

Did you solve the problem?

 

As I understand the starting position is 0 0, but when you rotate something starting position rotates also. So the corner which was 0 0 has other value and you need to account for the rotation you have done. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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