Remove Parralaxe loop When Camera Out Screen

Hi,
I modify some class of my games to prevent the camera from having a limit.
Now the camera always follows the player even at the end limit of the map
i remove in Game_Map.prototype.scroll....
Code:
this._displayY = Math.min(this._displayY + distance,
this.height() - this.screenTileY());
to
Code:
this._displayY += distance;
This seems to work perfectly.


My problem is that I use parraxes for mapping.
And strange, when the camera is out of the game limits.
The parallaxes repeat?.

In the idea, I would be supposed to see black color body out limit?
<body style="background-color: black">
So I'm looking for the class that makes the parralaxe work like a bitmap loop?
Someone knows the classes to look at, or would have clues about research?

I need parallax work like picture.

I thought I'd found something interesting here.
But I am not able to remove the loops of the parralaxes.

Code:
/////
Game_Map.prototype.setDisplayPos = function(x, y) {
    if (this.isLoopHorizontal()) {
        this._displayX = x.mod(this.width());
        this._parallaxX = x;
        console.log(0);
    } else {
        var endX = this.width() - this.screenTileX();
        this._displayX = endX < 0 ? endX / 2 : x.clamp(0, endX);
        this._parallaxX = this._displayX;
        console.log(1);
    }
    if (this.isLoopVertical()) {
        this._displayY = y.mod(this.height());
        this._parallaxY = y;
        console.log(2);
    } else {
        var endY = this.height() - this.screenTileY();
        this._displayY = endY < 0 ? endY / 2 : y.clamp(0, endY);
        this._parallaxY = this._displayY;
        console.log(3);
    }
};
//////////////
/*
 * Simple fix for canvas parallax issue, destroy old parallax and readd to  the tree.
 */
Spriteset_Map.prototype._canvasReAddParallax = function() {
    var index = this._baseSprite.children.indexOf(this._parallax);
    console.log('index: ', index);
    this._baseSprite.removeChild(this._parallax);
    this._parallax = new TilingSprite();
    this._parallax.move(0, 0, Graphics.width, Graphics.height);
    this._parallax.bitmap = ImageManager.loadParallax(this._parallaxName);
    this._baseSprite.addChildAt(this._parallax,index);
};

Spriteset_Map.prototype.updateParallax = function() {
  
    if (this._parallaxName !== $gameMap.parallaxName()) {
        this._parallaxName = $gameMap.parallaxName();

        if (this._parallax.bitmap && Graphics.isWebGL() != true) {
            this._canvasReAddParallax();
        } else {
            this._parallax.bitmap = ImageManager.loadParallax(this._parallaxName);
        }
    }
    if (this._parallax.bitmap) {
        this._parallax.origin.x = $gameMap.parallaxOx();
        this._parallax.origin.y = $gameMap.parallaxOy();
      
    }
};

Thanks a lot for help
The parallax background is a tiling sprite that fills the screen and doesn't move, the image is scrolled on top of it. To get it to stop you'll need to change how it appears on screen at the edges of the map by adjusting _parallax.position
This is what I came up with for creating multiple parallaxes.
PHP:
Spriteset_Map.prototype.createLowerLayer = function() {
    Spriteset_Base.prototype.createLowerLayer.call(this);
    this.createParallax();
    this.createParallax2();
    this.createTilemap();
    this.createCharacters();
    this.createShadow();
    this.createDestination();
    this.createWeather();
};
var parallax2;
Spriteset_Map.prototype.createParallax2 = function() {
    this._parallax2 = new TilingSprite();
    this._parallax2.move(0, 0, Graphics.width, 900);
    this._parallax2.bitmap = ImageManager.loadParallax("bg1",0);
    this._parallax2.bitmap.smooth = false;
    parallax2 = this._parallax2; // <= ??? no time to arse through spaghetti code
    this._baseSprite.addChild(this._parallax2);
    this._parallax2.verticalWrap = false;
};

PHP:
Game_Map.prototype.update = function(sceneActive) {
   // do other stuff
    this.updateParallax2.apply(this, arguments);
};

PHP:
Game_Map.prototype.updateParallax2 = function(sceneActive){
   // their parallax
   this.updateParallax();
  
   // my parallax
   parallax2.origin.x = this._displayX * this.tileWidth();
   parallax2.y = 0 - this._displayY * this.tileWidth() +
       (parallax2.bitmap.height - Graphics.height);
};

This is a bad example, because I'm all overwrites for my own games. I don't horse around with friendly plugin protocol cow pie for my own bull poo.

Parallax2 goes all the way to the map edge and looks like this school building.
Spoiler
This is what I came up with for creating multiple parallaxes.
PHP:
Spriteset_Map.prototype.createLowerLayer = function() {
    Spriteset_Base.prototype.createLowerLayer.call(this);
    this.createParallax();
    this.createParallax2();
    this.createTilemap();
    this.createCharacters();
    this.createShadow();
    this.createDestination();
    this.createWeather();
};
var parallax2;
Spriteset_Map.prototype.createParallax2 = function() {
    this._parallax2 = new TilingSprite();
    this._parallax2.move(0, 0, Graphics.width, 900);
    this._parallax2.bitmap = ImageManager.loadParallax("bg1",0);
    this._parallax2.bitmap.smooth = false;
    parallax2 = this._parallax2; // <= ??? no time to arse through spaghetti code
    this._baseSprite.addChild(this._parallax2);
    this._parallax2.verticalWrap = false;
};

PHP:
Game_Map.prototype.update = function(sceneActive) {
   // do other stuff
    this.updateParallax2.apply(this, arguments);
};

PHP:
Game_Map.prototype.updateParallax2 = function(sceneActive){
   // their parallax
   this.updateParallax();
 
   // my parallax
   parallax2.origin.x = this._displayX * this.tileWidth();
   parallax2.y = 0 - this._displayY * this.tileWidth() +
       (parallax2.bitmap.height - Graphics.height);
};

This is a bad example, because I'm all overwrites for my own games. I don't horse around with friendly plugin protocol cow pie for my own bull poo.

Parallax2 goes all the way to the map edge and looks like this school building.


I just want to have the camera always follow the character, and that the limit Height and width does not allow the parallaxe to render in loop.
Limite show only the basic body style of app.
I have not found for now a way to do this.

Original thread: https://forums.rpgmakerweb.com/threads/remove-parralaxe-loop-when-camera-out-screen.77368/