Sprite Anchor
[SIZE=14.6667px]With the new sprite type, courtesy of Pixi.js, there is a property used in several locations referring to ‘this.anchor.x’ and ‘this.anchor.y’. Anchor is the origin of the sprite. Therefore, when you used .ox and .oy for a sprite in Ace and below, you would now use .achor.x and .anchor.y.[/SIZE][SIZE=14.6667px]An important notice! The anchor.x and anchor.y values are percents. 0.5 means half way through the sprite. To get a percent from the pixel value you want, you'll need to do something like:[/SIZE]
Code:
this.anchor.x = (PointYouWant / this.width)