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?
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?