So I'm making an action game with Alpha ABS by Pheonix KageDesu, and I'm just curious if anyone knows how to change the character's default sprite to a damaged\K.O'ed version when the player's HP is 0? Thanks in advance guys!
How does one change an actor's image when they're knocked out?
RPG Maker MV Supportyou should give a link to a plugin if it has any bearing on a question - and this one does.
If it were a regular battle I would simply place the change actor grafic command in a troop event, but most ABS-type scripts and plugins don't have the battlescreen.
for effects on the map I would use a common event on parallel process with a wait of at least 10 frames - and if something only rarely needs to be checked with a higher wait.
however a lot of things depend on how the game over is handled, and from your question I think you'll have to describe that in more detail - most ABS type games have only one actor and it's game over if that one dies - so something is different here. And I would place the command in a common event called on death if possible at all.
If it were a regular battle I would simply place the change actor grafic command in a troop event, but most ABS-type scripts and plugins don't have the battlescreen.
for effects on the map I would use a common event on parallel process with a wait of at least 10 frames - and if something only rarely needs to be checked with a higher wait.
however a lot of things depend on how the game over is handled, and from your question I think you'll have to describe that in more detail - most ABS type games have only one actor and it's game over if that one dies - so something is different here. And I would place the command in a common event called on death if possible at all.
I don't know the specific mechanic for this plugin, so I can only guess the solution.
Maybe you can use a parallel common event and put conditional branch:
If actor's hp = 0, change actor graphic (to the KO'd version).
Maybe you can use a parallel common event and put conditional branch:
If actor's hp = 0, change actor graphic (to the KO'd version).
Silly question but how exactly do I set that up? I don't see the category for the actor's hp.
My bad, I forgot that there's no category for actor's hp. 😀
Maybe you can try "if actor's state = knockout" instead.
you use control variable - game data to get the actor HP, and after that check the variable for zero in the conditional branch.
however depending on how the plugin handles the data, that could be a problem to gwet by control variable - which is one reason why I asked for a link to the plugin to check that and other options
Original thread: https://forums.rpgmakerweb.com/threads/how-does-one-change-an-actors-image-when-theyre-knocked-out.129747/