- Joined
- Aug 24, 2016
- Messages
- 11
- Reaction score
- 0
- First Language
- Ukrainian
- Primarily Uses
- RMMV
All the good times of the day. When create the interface was necessary to rotate the text, but the artifacts appear when it turning. Are there any ideas how to solve the problem?
Code and a screenshot below.
Image rotate got without artifacts using the code:
Code and a screenshot below.
var FH_SceneMenu_create = Scene_Menu.prototype.create;
Scene_Menu.prototype.create = function() {
this.createBackground();
FH_SceneMenu_create.call(this);
this._commandWindow.x = 475;
this._commandWindow.y = 31;
this._statusWindow.x = 0;
this._statusWindow.y = this._commandWindow.height + 31;
this._goldWindow.x = 60;
this._goldWindow.y = 5;
};
Window_Gold.prototype.windowWidth = function() {
return 240;
};
Window_Gold.prototype.windowHeight = function() {
return 50;
};
Window_Gold.prototype.drawCurrencyValue = function(value, unit, x, y, width) {
this.resetTextColor();
var bitmap = ImageManager.loadFakeHero("menu/MenuIcon");
var pw = 50;
var ph = 50;
var sx = 50 % 50 * pw;
var sy = Math.floor(50 / 50) * ph;
this.contents.blt(bitmap, sx, sy, pw, ph, x, y);
this.drawText(value, x + 65, y + 8, width - unitWidth - 6, 'left');
this.rotation = 0.2;
};
Scene_Menu.prototype.create = function() {
this.createBackground();
FH_SceneMenu_create.call(this);
this._commandWindow.x = 475;
this._commandWindow.y = 31;
this._statusWindow.x = 0;
this._statusWindow.y = this._commandWindow.height + 31;
this._goldWindow.x = 60;
this._goldWindow.y = 5;
};
Window_Gold.prototype.windowWidth = function() {
return 240;
};
Window_Gold.prototype.windowHeight = function() {
return 50;
};
Window_Gold.prototype.drawCurrencyValue = function(value, unit, x, y, width) {
this.resetTextColor();
var bitmap = ImageManager.loadFakeHero("menu/MenuIcon");
var pw = 50;
var ph = 50;
var sx = 50 % 50 * pw;
var sy = Math.floor(50 / 50) * ph;
this.contents.blt(bitmap, sx, sy, pw, ph, x, y);
this.drawText(value, x + 65, y + 8, width - unitWidth - 6, 'left');
this.rotation = 0.2;
};
Image rotate got without artifacts using the code:
Code:
this._Money_Sprite = new Sprite(ImageManager.loadFakeHero("menu/MenuIcon"));
this._Money_Sprite.x = 50;
this._Money_Sprite.y = 50;
this._Money_Sprite.anchor.x = 1.0;
this._Money_Sprite.anchor.y = 1.0;
this.addChild(this._Money_Sprite);
this._Money_Sprite.rotation = 0.2;
Last edited by a moderator:


