MZ How To Make An Enemy/Actor Image Stay On Screen Upon Losing All Health?

Toying around with a battle damage feature I've been wanting to add for a very long time, and finally got it working to where the fighters will change images depending on how much health they have. (50% and 30%)

I have a fourth image, the KO image that I also want to add (Where the defeated character/enemy stays on screen and doesn't disappear), but I'm not sure how to get it working....anyone have any ideas on how I can make that happen?

(By the way, this is without using plugins and I'm using MZ just to clarify)
?
[bump]@DarkStarz-Inc [/bump]

Please give people time to see your post and respond.

Any reason why you don't want to use plugins for this? That would be the way.
Oh I can use plugins, I was just wondering whether or not it was possible.
If so, what are the plugins required for it?
You'd have to provide some more information about how you've made the system you have so far.

For example, in the default engine actors do already stay on the screen when they're dead. So we couldn't really make any suggestions about that without knowing what you're doing with actors and why they're going away.

As far as enemies, the only existing plugin I've seen for this are the ones that let you use sideview sprites for enemies (e.g. VisuStella Battle Core).

But if you don't want that, you're using regular static sprites and just don't want them to disappear, that should be a pretty easy little plugin to whip up.
You'd have to provide some more information about how you've made the system you have so far.

For example, in the default engine actors do already stay on the screen when they're dead. So we couldn't really make any suggestions about that without knowing what you're doing with actors and why they're going away.

As far as enemies, the only existing plugin I've seen for this are the ones that let you use sideview sprites for enemies (e.g. VisuStella Battle Core).

But if you don't want that, you're using regular static sprites and just don't want them to disappear, that should be a pretty easy little plugin to whip up.
Ah, okay, sorry for the lack of info! XD

Basically, its just early prototype phase stuff.
I'm using the "Enemy Transform" in the battle Events to get the battle damage to happen by just having it swap to another image that has more damage applied.

I am using static sprites without animations for enemies, but I also want to do the same for actors. I just don't know how to get it to work, since it seems like its forcing me to use sprites or sprite sheets?

Basically, I want static sprites for both sides (enemy and actor) with the ability to get them to switch to a KO image upon defeat. 🙂 Again, thanks for your help!!
Well, it's just some simple copy-and-pasting to make a sideview spritesheet that has the same image in every cel.

So it will have the behaviors of the SV sprites (including staying on the field as a body) but nothing actually moves.
Well, it's just some simple copy-and-pasting to make a sideview spritesheet that has the same image in every cel.

So it will have the behaviors of the SV sprites (including staying on the field as a body) but nothing actually moves.
Really? Where can I get a SV Spritesheet? I just hope its big enough to fit my art.
I don't know what you mean by "where do you get" one. You'd use an image editor, like GIMP.

You can read the instructions on how to format it by clicking, in MZ,
Help -> Contents -> Documentation -> Asset Standards
I don't know what you mean by "where do you get" one. You'd use an image editor, like GIMP.

You can read the instructions on how to format it by clicking, in MZ,
Help -> Contents -> Documentation -> Asset Standards
GIMP, eh? Just got it downloaded!

Again, I'm a TOTAL newcomer to all this, so you've been a great help! Anything else I need to know?
I don't know what you mean by "where do you get" one. You'd use an image editor, like GIMP.

You can read the instructions on how to format it by clicking, in MZ,
Help -> Contents -> Documentation -> Asset Standards
Oh snap, forgot to mention one detail....the battle system I'm currently using is the Front View style..
[bump]@DarkStarz-Inc [/bump]

Please give people time to see your post and respond.

Any reason why you don't want to use plugins for this? That would be the way.
Oh? What plugins are available for this sort of thing?

For context, I'm currently using the Enemy Transform (HP at 50%, HP at 30%) to change the images to another piece of art. I have a fourth image for when they're knocked out...but I dunno how to make that happen...
I didn't say there were any. You said "this is without plugins" so I assumed you wanted a non-plugin solution.
I didn't say there were any. You said "this is without plugins" so I assumed you wanted a non-plugin solution.
Oh! Sorry about that...my bad, I meant "this is without plugins" in regards to how I did it.

Still, if there is a non-plugin solution (or even a plugin solution) I'd love to know! 😀
Moved to: Plugin Requests
Oh? What plugins are available for this sort of thing?
Still, if there is a non-plugin solution (or even a plugin solution) I'd love to know! 😀
I did suggest one above.

If formatting your enemy image as a spritesheet is too challenging, you can try this - but I have not tested it, and I don't know if it will break other elements of the battle system.

Copy the below, paste it into a text editor, save it as a *.js file and include it as a plugin.
Code:
Sprite_Enemy.prototype.startCollapse = function() {
    this._effectDuration = 32;
//    this._appeared = false;
};

Sprite_Enemy.prototype.startBossCollapse = function() {
    this._effectDuration = this.bitmap.height;
//    this._appeared = false;
};

Sprite_Enemy.prototype.startInstantCollapse = function() {
    this._effectDuration = 16;
//    this._appeared = false;
};
I did suggest one above.

If formatting your enemy image as a spritesheet is too challenging, you can try this - but I have not tested it, and I don't know if it will break other elements of the battle system.

Copy the below, paste it into a text editor, save it as a *.js file and include it as a plugin.
Code:
Sprite_Enemy.prototype.startCollapse = function() {
    this._effectDuration = 32;
//    this._appeared = false;
};

Sprite_Enemy.prototype.startBossCollapse = function() {
    this._effectDuration = this.bitmap.height;
//    this._appeared = false;
};

Sprite_Enemy.prototype.startInstantCollapse = function() {
    this._effectDuration = 16;
//    this._appeared = false;
};
Just added it! Er....should I be worried when it says the plugin "may not support RPG Maker MZ?" Also, from what I tested, would I have to apply this line of code somewhere for it to work?
I'm currently testing the "Show Image" option and it seems to be doing the trick....only issue is, during battle with three enemies, it'll display the first two that get KOed...but when the third goes down, it doesn't show up at all..

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-enemy-actor-image-stay-on-screen-upon-losing-all-health.156791/