Stopping enemies blinking when hit?

Does anyone know a way to make enemies (or the player in side view) not "blink" when hit? I offen have very big boss monster pictures on screen and it's VERY distracting when the entire monster (that is half of the screen) disappears for a frame after getting hit

I would imagine it would be in one of the core.js folders, (I'm no stranger to some basic coding even if I am not exactly a "coder") so that's fine with me, just need to know if there is a line in their anyone knows of...

Can anyone point me in a direction to solve my problem? I would prefer to not use plugins as I find altering the core code (at least in my case) to be more reliable (yes unpopular opinion) however I won't complain if there is a plugin that helps with this, as long as it's not a VisuStella core plugin as I only need to have the enemy to stop blinking once hit- not a plethora of other features lol
Does anyone know a way to make enemies (or the player in side view) not "blink" when hit? I offen have very big boss monster pictures on screen and it's VERY distracting when the entire monster (that is half of the screen) disappears for a frame after getting hit
you can remove the call for it in the enemy version of performDamage() found in objects.js
Code:
Game_Enemy.prototype.performDamage = function() {
    Game_Battler.prototype.performDamage.call(this);
    SoundManager.playEnemyDamage();
    //this.requestEffect("blink");
};


I would prefer to not use plugins as I find altering the core code (at least in my case) to be more reliable (yes unpopular opinion) however I won't complain if there is a plugin that helps with this
if you dont mind my asking, what do you mean by it being more reliable? unless you have plugins overwriting eachother, any change you make via plugin would work the same way any change you'd make to the core scripts. All plugins do is make changes to the corescripts

If you alter the core scripts directly you make it harder to keep track of changes made, you might overwrite behaviors plugins expect in order to run, and since youre using MZ and its still getting updates, if you have to update your core scripts for any reason you'd lose all your edits made
you can remove the call for it in the enemy version of performDamage() found in objects.js
Code:
Game_Enemy.prototype.performDamage = function() {
    Game_Battler.prototype.performDamage.call(this);
    SoundManager.playEnemyDamage();
    //this.requestEffect("blink");
};



if you dont mind my asking, what do you mean by it being more reliable? unless you have plugins overwriting eachother, any change you make via plugin would work the same way any change you'd make to the core scripts. All plugins do is make changes to the corescripts

If you alter the core scripts directly you make it harder to keep track of changes made, you might overwrite behaviors plugins expect in order to run, and since youre using MZ and its still getting updates, if you have to update your core scripts for any reason you'd lose all your edits made
Ah... well I didn't consider that... (The code changing plugin compatibility)

I don't really code much as I am pretty crappy at JavaScript, being VERY new to it only having pretty much Google and educated guesswork to go off of- but all I write in my base projects- at least in the various core.js code files are: WASD as movement, and a function that makes enemies never do less than 1 damage, besides that, I don't really write anything in

(I have both wasd as movement and "chip damage" as plugins I made after a while anyway)

I guess it was poor wording on my end as I didn't mean it by "I don't like plugins" and more as "I just like changing tiny things without having to hunt down a plugin to make it work"

Thanks for helping with solving my issue though! I'll keep in mind trying to use/make more plugins in the future
Sorry I prematurely said my problem was fixed... Whoops... Um I typed in what you had instructed however now when I attack an enemy, it just freezes the game- did I miss something?

If you could tell me exactly what line it was on by number, or if there was something I didn't type right that would be extremely appreciated

I typed:

Game_Enemy.prototype.performDamage = function() {
Game_Battler.prototype.performDamage.call(this);
SoundManager.playEnemyDamage();
//this.requestEffect("blink");
};

On line 3990
If you could tell me exactly what line it was on by number, or if there was something I didn't type right that would be extremely appreciated
the intention was that it'd be a plugin, but it shouldnt make a functional difference in this case. Game_Battler.prototype.performDamage usually doesnt do anything.

to rule out a plugin related issue, have you tried disabling all (other) plugins after you tested it? if the game froze, id imagine theres some infinite recursion going on but that doesnt happen with just a fresh project and the changed function

On line 3990
Game_Battler.prototype.performDamage is around there, but Game_Enemy.prototype.performDamage is further down by 5083
the intention was that it'd be a plugin, but it shouldnt make a functional difference in this case. Game_Battler.prototype.performDamage usually doesnt do anything.

to rule out a plugin related issue, have you tried disabling all (other) plugins after you tested it? if the game froze, id imagine theres some infinite recursion going on but that doesnt happen with just a fresh project and the changed function


Game_Battler.prototype.performDamage is around there, but Game_Enemy.prototype.performDamage is further down by 5083
Lmao... Ok so I originally tried it in the core.js but decided not to after I did notice that your help code looked like a plugin, so I put it in plugin format and..... I feel a little silly, I accidentally put a lowercase Game_battler not Game_Battler causing freezing and an error after attacking

My bad, I corrected the error and your plugin works perfectly Xb

Thanks a lot for your help and advice Robeo33! Problem now Actually solved.

Original thread: https://forums.rpgmakerweb.com/threads/stopping-enemies-blinking-when-hit.180697/