How does one change an actor's image when they're knocked out?

Noferatsi

Level 10
Veteran
Joined
Dec 15, 2013
Messages
63
Reaction score
11
First Language
English
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!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,430
Reaction score
7,711
First Language
German
Primarily Uses
RMMV
you 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.
 

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
441
Reaction score
1,405
First Language
Indonesia
Primarily Uses
RMMV
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).
 

Noferatsi

Level 10
Veteran
Joined
Dec 15, 2013
Messages
63
Reaction score
11
First Language
English
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).
Silly question but how exactly do I set that up? I don't see the category for the actor's hp.
 

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
441
Reaction score
1,405
First Language
Indonesia
Primarily Uses
RMMV
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. :D
Maybe you can try "if actor's state = knockout" instead.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,430
Reaction score
7,711
First Language
German
Primarily Uses
RMMV
Silly question but how exactly do I set that up?
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,456
Members
137,821
Latest member
Capterson
Top