How can I center the image on a wide screen ?
Scene_Album_TT.prototype.createBackground = function () {
this._backSprite = new Sprite();
this._backSprite.bitmap = ImageManager.loadTripleTriad(this.image_list['AlbumBackground']);
this.addChild(this._backSprite);
I tried :
Scene_Album_TT.prototype.createBackground = function () {
this._backSprite = new Sprite();
this._backSprite.bitmap = ImageManager.loadTripleTriad(this.image_list['AlbumBackground']);
this._backSprite.bitmap.x = Graphics.width/2;
this._backSprite.bitmap.y = Graphics.height/2;
this.addChild(this._backSprite);
even this does not show changes:
this._backSprite.bitmap.x = Graphics.boxWidth/2;
this._backSprite.bitmap.y = Graphics.boxHeight/2;
there is another action that I must do in order to let it work?
maybe this is only a definition and must be called?
Scene_Album_TT.prototype.createBackground = function () {
this._backSprite = new Sprite();
this._backSprite.bitmap = ImageManager.loadTripleTriad(this.image_list['AlbumBackground']);
this.addChild(this._backSprite);
I tried :
Scene_Album_TT.prototype.createBackground = function () {
this._backSprite = new Sprite();
this._backSprite.bitmap = ImageManager.loadTripleTriad(this.image_list['AlbumBackground']);
this._backSprite.bitmap.x = Graphics.width/2;
this._backSprite.bitmap.y = Graphics.height/2;
this.addChild(this._backSprite);
even this does not show changes:
this._backSprite.bitmap.x = Graphics.boxWidth/2;
this._backSprite.bitmap.y = Graphics.boxHeight/2;
there is another action that I must do in order to let it work?
maybe this is only a definition and must be called?