Hi all, I'm using tall sprites, and with that weapons image does not line up with the new tall sprites.
So rather then edit via photoshot/Gimp ( I tried this ) It doesn't scale too well.
So I looked at the rpg_sprites.js file.
And found
Sprite_Weapon.prototype.updateFrame = function() {
if (this._weaponImageId > 0) {
var index = (this._weaponImageId - 1) % 12;
var w = 96;
var h = 64;
var sx = (Math.floor(index / 6) * 3 + this._pattern) * w;
var sy = Math.floor(index % 6) * h;
this.setFrame(sx, sy, w, h);
} else {
this.setFrame(0, 0, 0, 0);
}
Now I would need to change the Width and Height but I don't know how to calculate weapon sheet sizes to tall sprites sizes?
The other option is to play around...... but this can be inconsistant.
Can anyone help me with this Mathatical question?
I'm using The POP horror tall sprites so unsure on demensions....I think they are 32 x 32 but scaled by 300 for MV.
So rather then edit via photoshot/Gimp ( I tried this ) It doesn't scale too well.
So I looked at the rpg_sprites.js file.
And found
Sprite_Weapon.prototype.updateFrame = function() {
if (this._weaponImageId > 0) {
var index = (this._weaponImageId - 1) % 12;
var w = 96;
var h = 64;
var sx = (Math.floor(index / 6) * 3 + this._pattern) * w;
var sy = Math.floor(index % 6) * h;
this.setFrame(sx, sy, w, h);
} else {
this.setFrame(0, 0, 0, 0);
}
Now I would need to change the Width and Height but I don't know how to calculate weapon sheet sizes to tall sprites sizes?
The other option is to play around...... but this can be inconsistant.
Can anyone help me with this Mathatical question?
I'm using The POP horror tall sprites so unsure on demensions....I think they are 32 x 32 but scaled by 300 for MV.