Tsunar

Veteran
Veteran
Joined
Jun 21, 2013
Messages
38
Reaction score
9
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
Veteran
Joined
Mar 13, 2012
Messages
375
Reaction score
208
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 Posts

Latest Profile Posts

Aerosys wrote on OcRam's profile.
Just saw your video about Map Generation. What a pity it's gone! It looked really well-made and like an excellent competitor to mine.
The Florida city I was born and raised in, Fort Myers, has been in the national news lately. We took a major hit from the hurricane. I'm fine, but others weren't so lucky.
Today's gonna be a weird day. Someone just let me through... while I was waiting for a green light.
Released my latest game in June! Ashina: The Red Witch. Inspired by old adventure RPG Maker games :)
If you are not part of the solution, you are insoluble sediment.

Forum statistics

Threads
125,650
Messages
1,172,527
Members
164,765
Latest member
NPC2000
Top