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,321
Reaction score
8,755
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

"16. Do NOT contact other members by private message, on the forum or status feed, inviting them to put additional tools (such as leaderboards, ads, etc - whether yours or another person's) into their game."
Oh no. Necessity is the mother of invention. Do I want to know what happened?
Early WIP for my next entry. Since it's early you're going to need to wait a little longer than usual. What's that? You'll find out in my next update!
12.PNG
20 festive cards can now be unlocked in BiteMe!

The cards are permanent, but can only be unlocked in December!
Once the year is over, you won't be able to unlock the cards, or to upgrade it.
https://johndoenews.itch.io/biteme-storymodeCard141-160-Ad.png
Finally showing some updates again

Forum statistics

Threads
117,181
Messages
1,105,243
Members
153,307
Latest member
nyhkkbjyek
Top