Sprite OX/OY in RMMV

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)
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]

this.anchor.x = (PointYouWant / this.width)
thanks for the info that had me stuck for a moment.
thanks for the info that had me stuck for a moment.
Yeah, at first I was confused about a lot of differences, but after having it for about a month I figured a lot of it out. I'm trying to post as much as I can and make sure threads aren't filled with false information. Need to make sure MV is one of the best RMs ever. No hidden classes, and script compatibility everywhere!

Original thread: https://forums.rpgmakerweb.com/threads/sprite-ox-oy-in-rmmv.46347/