Sparky89

Game Designer
Veteran
Joined
Dec 18, 2019
Messages
269
Reaction score
117
First Language
English
Primarily Uses
RMMV
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.
 

KenKrath

Veteran
Veteran
Joined
Apr 4, 2015
Messages
218
Reaction score
180
First Language
English
Primarily Uses
I don't know if this will help you because you're using MV, but in ACE the gamehub helps you format these sprites correctly.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,358
Reaction score
8,772
First Language
German
Primarily Uses
RMMV
@KenKrath this has nothing to do with the sprite format.
the weapon is a different picture than the sprite and NOT part of it, that is why the positioning of the two pictures (weapon and sprite) needs to be programmed.

@Sparky89 theoretically you are correct, but it will require some more info and some work.
Please check the exact pixel sizes of the sprites, then someone might be able to help you with this.
And the changes should be done as plugin, not by editing the core files, so you should ask a mod to move this to plugin requests.
 

Latest Threads

Latest Posts

Latest Profile Posts

aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v
Well, I've got a party tomorrow, and my friends are coming over. I wanted to work a bit on the Fandom Scouts assets so I can be ready when that update arrives... in other news, Pizza Time Horror is getting a second teaser, and it shows Cabaret Helen's last performance before the location closed.
Also who used to be scared of Chuck E as a kid? I was! Now I love him!
The new cards and what they do:

(I am clearly not a youtuber... Haha)

Forum statistics

Threads
117,276
Messages
1,106,057
Members
153,450
Latest member
BRCMuller
Top