I was wondering if there is a good way to make a damage popup style number appear over an event, with the number being determined by a variable. I need this for an ATB I'm using for my game. I need a better method then using pictures.
Damage Popup effect on map
RPG Maker MV SupportDid you try googling plugins for that?
Anyway, I made this, it's using the same sprite damage like in battle.
Then if you have an event reference you can call the method on it and use a variable, like in event script box:
Copy paste below to notepad, save as .js file and add as plugin:
Anyway, I made this, it's using the same sprite damage like in battle.
Then if you have an event reference you can call the method on it and use a variable, like in event script box:
$gameMap.event(this._eventId).showDamage($gameVariables.value(10));Copy paste below to notepad, save as .js file and add as plugin:
Game_Event.prototype.showDamage = function(value) { const sprite = SceneManager._scene._spriteset._characterSprites.find(characterSprite => characterSprite._character === this); const damageSprite = new Sprite_Damage(); damageSprite.x = 24; damageSprite.y = 0; damageSprite.createDigits(0, value); sprite.addChild(damageSprite);};const _myEdit1_SpriteDamage_update = Sprite_Damage.prototype.update;Sprite_Damage.prototype.update = function() { _myEdit1_SpriteDamage_update.call(this); if (!$gameParty.inBattle() && this._duration <= 0) this.parent.removeChild(this);};Yeah, I should have searched a bit more before making a thread, because I found a plug-in that does exactly what I need it to
Original thread: https://forums.rpgmakerweb.com/threads/damage-popup-effect-on-map.183904/