Hey guys, I'm drawing a blank... I changed the size of my state icons from 32x32 to 96x32...
Now how do I have to change this function in sprites.js so I get the right icon?
Sprite_StateIcon.prototype.updateFrame = function() {
var pw = Sprite_StateIcon._iconWidth;
var ph = Sprite_StateIcon._iconHeight;
var sx = this._iconIndex % 16 * pw;
var sy = Math.floor(this._iconIndex / 16) * ph;
this.setFrame(sx, sy, pw, ph);
};
I'm sorry, it's probably simple but I've been on this issue since 3 hours...
Now how do I have to change this function in sprites.js so I get the right icon?
Sprite_StateIcon.prototype.updateFrame = function() {
var pw = Sprite_StateIcon._iconWidth;
var ph = Sprite_StateIcon._iconHeight;
var sx = this._iconIndex % 16 * pw;
var sy = Math.floor(this._iconIndex / 16) * ph;
this.setFrame(sx, sy, pw, ph);
};
I'm sorry, it's probably simple but I've been on this issue since 3 hours...