Locking the image no matter what

Is there a way to lock an image no matter what? I made a sample plugin:

var spriteset_map_groundOverlay = Spriteset_Map.prototype.createLowerLayer;Spriteset_Map.prototype.createLowerLayer = function() { spriteset_map_groundOverlay.call(this); this.createAnotherLayer();};Spriteset_Map.prototype.createAnotherLayer = function() { this._ground = new Sprite(); this._ground.bitmap = ImageManager.loadSystem("Cobblestones"); this._ground.z = 2; this._baseSprite.removeChild(this._weather); this._tilemap.addChild(this._ground); this._baseSprite.addChild(this._ground);}So once I created this new layer, I can see I have successfully done that. But the problem is when let's say the map is wide. When I walk, the image follows me. is there a way to prevent it?
When a sprite is drawn, it's drawn on the screen. The reason you see things scroll along with the character on the map is because the sprites are explicitly moved around so that it looks like they move with the player. You'll need to update the sprite's position to move with the player.
From your explanation, I tried and this is the result. It works, but I'm just wondering, does the image really have to repeat like that? I mean, is there a way to splice the TilingSprite, so it should only appear as what it is and not repeat itself?

Code:
var spriteset_map_groundOverlay = Spriteset_Map.prototype.createLowerLayer;var spriteset_map_groundOverlayUpdate = Spriteset_Map.prototype.update;Spriteset_Map.prototype.createLowerLayer = function() {    spriteset_map_groundOverlay.call(this);    this.createAnotherLayer();};Spriteset_Map.prototype.createAnotherLayer = function() {    this._ground = new TilingSprite();    this._ground.bitmap = ImageManager.loadSystem("Cobblestones");    this._ground.move(0, 0, Graphics.width, Graphics.height);    this._ground.z = 2;    this._baseSprite.removeChild(this._weather);    this._tilemap.addChild(this._ground);    this._baseSprite.addChild(this._ground);}Spriteset_Map.prototype.update = function() {    spriteset_map_groundOverlayUpdate.apply(this);        this._ground.origin.x =  $gameMap.displayX() * $gameMap.tileWidth();        this._ground.origin.y =  $gameMap.displayY() * $gameMap.tileHeight();};
according to Wednesday update just use ! infront of the image and it locks it to the map.
according to Wednesday update just use ! infront of the image and it locks it to the map.
I tried and its just the same. I was able to solve my problem, but then the TilingSprite just repeats itself. I know the solution is to make the image as big as the tilemap, but just in case I wanted it not to repeat, I'd love to see a solution.

I also tried using a sprite with a ! in it, like !Cobblestones and it still follows me..so I had to write a mini plugin to make it work.
according to Wednesday update just use ! infront of the image and it locks it to the map.
That's only for parallaxes using the default code, they're trying to display a sprite.

I tried and its just the same. I was able to solve my problem, but then the TilingSprite just repeats itself. I know the solution is to make the image as big as the tilemap, but just in case I wanted it not to repeat, I'd love to see a solution.

I also tried using a sprite with a ! in it, like !Cobblestones and it still follows me..so I had to write a mini plugin to make it work.
A tiling sprite will work, yes, but you can also just move the actual position of the sprite you want to move in relation to the player. A tiling sprite is probably easier, though, really. 
Yes I am using a TilingSprite now. The problem with it though is that it has the move function, where you have to elaborately give the x, y, width and height. It works alright if I make it 0, 0, Graphics.width, Graphics.height. I was also able to lock the TilingSprite's position. But here's the thing that's left:

cPhbVdS.png


It does lock, but it repeats. :/
The ! would only work if you used the built-in parallaxing solution. If you are building your own, you would have to add the same logic.


To stop it tiling, you would need to make it the same size as your game window.
The ! would only work if you used the built-in parallaxing solution. If you are building your own, you would have to add the same logic.

To stop it tiling, you would need to make it the same size as your game window.
I believe this is the only solution though. If my game window is 1000+ the tilingsprite should be 1000+ in size too. But just curious, is there like a built in solution to cut the TilingSprite just in case?
I couldn't see one when I made my fog plugin. But I was trying to enlarge/stretch my sprite to fit the screen, rather than stopping it repeating. TilingSprite doesn't seem to have too much built in.

Original thread: https://forums.rpgmakerweb.com/threads/locking-the-image-no-matter-what.51689/