Can somebody help me how to make images prioritize above and below each other I can't figure out the right code for it...
this._above = new Sprite(); this._above.bitmap = ImageManager.loadSystem('Above'); this._above.z = 2; this.addChild(this._above); this._below = new Sprite(); this._below.bitmap = ImageManager.loadSystem('Below'); this._below.z = 1; this.addChild(this._below);I have these codes in a scene where in I will display 2 different images
but then whichever I code last will be the one above. In this case, "_below" is actually above "_above".
Am i doing something wrong?
this._above = new Sprite(); this._above.bitmap = ImageManager.loadSystem('Above'); this._above.z = 2; this.addChild(this._above); this._below = new Sprite(); this._below.bitmap = ImageManager.loadSystem('Below'); this._below.z = 1; this.addChild(this._below);I have these codes in a scene where in I will display 2 different images
but then whichever I code last will be the one above. In this case, "_below" is actually above "_above".
Am i doing something wrong?