drikolino

Warper
Member
Joined
Sep 29, 2019
Messages
3
Reaction score
0
First Language
português
Primarily Uses
RMVXA
Hey! Help-me please! I want disable the scroll hp and mp meter.

Image here

Code:
//==============================
// * create HP Meter
//==============================
MCharStatus.prototype.createHPMeter = function() {
    this._hpMeter = new Sprite(this._HPMeterImg);
    this._hpMeterData = [this._HPMeterImg.width / 3,this._HPMeterImg.height,0,0];
    this._hpMeterData[2] = this._hpMeterData[0] * 2;
    this._hpMeterData[3] = Math.randomInt(this._hpMeterData[2])
    this._hpMeter.x = this._layout.x + Moghunter.scMenu_HPMeterX;
    this._hpMeter.y = this._layout.y + Moghunter.scMenu_HPMeterY;
    this.updateMeter(this._hpMeter,this._hpMeterData,this._actor.hp,this._actor.mhp);
    this.addChild(this._hpMeter);
};
 
//==============================
// * create MP Meter
//==============================
MCharStatus.prototype.createMPMeter = function() {
    this._mpMeter = new Sprite(this._MPMeterImg);
    this._mpMeterData = [this._MPMeterImg.width / 3,this._MPMeterImg.height,0,0];
    this._mpMeterData[2] = this._mpMeterData[0] * 2;
    this._mpMeterData[3] = Math.randomInt(this._mpMeterData[2])
    this._mpMeter.x = this._layout.x + Moghunter.scMenu_MPMeterX;
    this._mpMeter.y = this._layout.y + Moghunter.scMenu_MPMeterY;
    this.updateMeter(this._mpMeter,this._mpMeterData,this._actor.mp,this._actor.mmp);
    this.addChild(this._mpMeter);
};
 
//==============================
// * update Meter
//==============================
MCharStatus.prototype.updateMeter = function(sprite,data,v1,v2) {
     var cw = data[0] * v1 / v2;
     sprite.setFrame(data[3],0,cw,data[1]);
     data[3] += 4;
     if (data[3] > data[2]) {data[3] = 0};
};
 

Latest Threads

Latest Posts

Latest Profile Posts

Checking out the Judge's Round Table. Really cool getting their perspective in a Q/A environment like this.
I'm heading back to Orlando tomorrow! Dad said he's going to take me to my favorite arcade and maybe Aquatica.
animated message windows <3
or message window that uses background images that can be animated?
Still need to fix some things, but it's going great so far :)
CEPjLJn.gif
just when I thought one of the greatest game of all time couldn't get any better, they announce a new dlc for it.
For anyone interested: there's another huge humble bundle with JRPG assets + a game jam starting next month - it's for a good cause, so check it out <3

Forum statistics

Threads
113,784
Messages
1,077,440
Members
147,821
Latest member
Zabasin
Top