Changing texture origin of battleback sprite

Been trying this for 10 mins but can't figure it out. Here's my battleback right now


1596410771092.png


This is the full image. The red part is the area that's currently rendered to the screen.

1596410839063.png


I tried messing around with back1Sprite but couldn't figure out how to move the origin of the texture to a different part the picture.
When I changed x and y position, it moved the entire image, so I know that's the one I want to change, but when I tried origin.x and origin.y it didn't seem to do anything.

It uses a TilingSprite the same way tilemap is done, so I thought I could just change the origin.

Code:
Spriteset_Battle.prototype.createBattleback = function() {
    var margin = 32;
    var x = -this._battleField.x - margin;
    var y = -this._battleField.y - margin;
    var width = Graphics.width + margin * 2;
    var height = Graphics.height + margin * 2;
    this._back1Sprite = new TilingSprite();
    this._back2Sprite = new TilingSprite();
    this._back1Sprite.bitmap = this.battleback1Bitmap();
    this._back2Sprite.bitmap = this.battleback2Bitmap();
    this._back1Sprite.move(x, y, width, height);
    this._back2Sprite.move(x, y, width, height);
    this._battleField.addChild(this._back1Sprite);
    this._battleField.addChild(this._back2Sprite);

    this._back1Sprite.origin.y = -640 // shift it up?
};
Check the constructor of the battleback sprite. Is it 'Sprite_Battleback'? YEP_CoreEngine changes the prototype from TilingSprite to Sprite, so there is no origin.
Check the constructor of the battleback sprite. Is it 'Sprite_Battleback'? YEP_CoreEngine changes the prototype from TilingSprite to Sprite, so there is no origin.

Not using yanfly's core engine, so it's still TilingSprite
Actually when I tried it in console

Code:
SceneManager._scene._spriteset._back1Sprite.origin.x -= 64

It works fine.
Maybe the origin of the sprite is getting set elsewhere.

EDIT:

Code:
Spriteset_Battle.prototype.locateBattleback = function() {
    var width = this._battleField.width;
    var height = this._battleField.height;
    var sprite1 = this._back1Sprite;
    var sprite2 = this._back2Sprite;
    sprite1.origin.x = sprite1.x + (sprite1.bitmap.width - width) / 2;
    sprite2.origin.x = sprite1.y + (sprite2.bitmap.width - width) / 2;
    if ($gameSystem.isSideView()) {
        sprite1.origin.y = sprite1.x + sprite1.bitmap.height - height;
        sprite2.origin.y = sprite1.y + sprite2.bitmap.height - height;
    }
};
Ok I found why lol it's setting the origin here.
Perhaps it is being constantly set by a screen shake update?

Original thread: https://forums.rpgmakerweb.com/threads/changing-texture-origin-of-battleback-sprite.124853/