Tsunar

Regular
Regular
Joined
Jun 21, 2013
Messages
51
Reaction score
12
First Language
English
Primarily Uses
You know the weapon that appears when your character attacks in side view? well Im using taller sprites and I still want to use that. Is there a way to change the X and Y of that sprite to fit the taller sprites?
 

coyotecraft

Mythographer
Regular
Joined
Mar 13, 2012
Messages
502
Reaction score
278
First Language
English
Primarily Uses
N/A
Sure. It's in rmmz_sprites.js
JavaScript:
Sprite_Weapon.prototype.initMembers = function() {
    this._weaponImageId = 0;
    this._animationCount = 0;
    this._pattern = 0;
    this.anchor.x = 0.5;
    this.anchor.y = 1;
    this.x = -16;
    this.y = -24; // added here; some number
};

I can't tell you what your offset will be.
 

Latest Threads

Latest Profile Posts

Screenshot saturday!

Granny's home

Happy weekend all

home.png
Would an older woman be eligible for Blondus points?
Or is that a privilege exclusive to the youngsters?
Lindsey-Neutral.png
Another One.gif
Sometimes screenshot saturday is just a new enemy
Update: Coworker sabotaged the truck's mirrors by applying a threadlocking compound to the bolts used to adjust the mirrors. Now NO ONE can adjust them. So I filed a legit report of sabotage of equipment to leadership and declared that I cannot safely operate the vehicle if I can't see what needs to be seen. So the truck has to go to the shop for repair, and we need a substitute vehicle. Nice work, dude :p
1701524304115.png
Part of growing up is finding out that love hurts.
"I signed up for this heartbreak."

Forum statistics

Threads
136,687
Messages
1,268,782
Members
180,398
Latest member
fatsquirrelhater453
Top