MZ (Solved) Sprite_Character isn't positioning itself correctly

I'm having trouble positioning a Sprite_Character. It seems unaffected by the x and y values, and also doesn't position itself at 0, 0 like you would expect. I originally tried to position the sprite in the middle of a window, but after no luck with that, I tried to isolate the issue. I removed the window entirely and added the Sprite_Character to the scene, same issue. I tried using Sprite which does not have the issue (of course, it will display the entire character sheet, which isn't desirable).

Does anyone know why this is? Am I missing something important that will make the sprite position correctly?

This is the entire code used for the plugin. I call the scene from an event. No other plugins added or modifications made.

JavaScript:
class Game_FauxPlayer extends Game_Player {
  constructor() {
       super(...arguments);
     }
     initialize(actorData) {
         super.initialize();
         this.setActorData(actorData);
     }
     setActorData(actorData) {
       this._actorData = actorData;
       this.refresh();
     }
     refresh() {
       let actor = this._actorData;

       let characterName = actor ? actor.characterName() : "";
       let characterIndex = actor ? actor.characterIndex() : 0;

       this.setImage(characterName, characterIndex);
       this._followers.refresh();
     }
}
 
class Scene_Evolution extends Scene_MenuBase {
     constructor () {
        super(...arguments);
     }
     create() {
         this.createWindowLayer();
         this.createActor();
     }
     createActor() {
        this._fauxActorData = $gameActors.actor($gameParty._actors[1]);
        this._fauxActor = new Game_FauxPlayer(this._fauxActorData);

        this.addChild(new Sprite_Character(this._fauxActor));
     }
}
Solved this one too, after many hours. The anchor points of Sprite's are 0, 0 by default. The x and y are also 0, 0. Sprite_Character sets the anchor point to 0.5, 1, and also repositions the character which causes the x and y to also change. This can be found here:

JavaScript:
Sprite_Character.prototype.updatePosition = function() {
    this.x = this._character.screenX();
    this.y = this._character.screenY();
    this.z = this._character.screenZ();
};

The values are retrieved via Game_CharacterBase but... why this doesn't occur in MV despite the code being near identical, I'm unsure. It probably goes back further, but for what I'm doing, I needn't do that.

In an update function, I basically had to set the anchor points to 0, and update the x and y values (an alternative is overriding updatePosition). The solution was simple, but it sure sent me on a wild goose chase.

A side thing I learned, childs added via addInnerChild are hidden if they are positioned outside of their parent.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-sprite_character-isnt-positioning-itself-correctly.135002/