Jump to content

How to change game world origin to center of canvas


elitian
 Share

Recommended Posts

When manipulating sprites, we can do this.sprite.anchor.setTo(.5,.5), which sets the rotation and "origin" of the sprite to its center, rather then the upper left corner.

How can we do the same for the game world? So when we spawn a sprite on (0,0), it spawns to the center of the game world/canvas?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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