Save-Point
How do I make a PNG image (or animation) show up when a character dies? - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: Code Support (https://www.save-point.org/forum-20.html)
+--- Thread: How do I make a PNG image (or animation) show up when a character dies? (/thread-12713.html)



How do I make a PNG image (or animation) show up when a character dies? - Ace_V - 08-29-2025

Hi! I was hoping I could implement an effect where a PNG image pops in or fades in when a character dies, then fades out two seconds later, like this:

   
(base screenshot taken from DerVVulfman's Lani's Locks)

It need not be an animation sheet, just a PNG is more than enough (see attached for examples) but really, whichever is easier to implement would be great.  Laughing

I hope someone can help me out!


RE: How do I make a PNG image (or animation) show up when a character dies? - DerVVulfman - 08-29-2025

Currently, I am without my main system ... ergo without RPGMaker. But I am wondering if this can merely be done within the TROOPS database.

The 'collapse' effect which changes the default battler red and fades the battler away is done because it it is a sprite object. That being an object that is given and holds a picture image (imagine a picture frame), and it is the frame that is controlled by such effects. And when one uses the [SHOW PICTURE] event, they are actually creating a sprite to hold a picture.
Code:
@>Control Variiable[0011:AHeroHealth]== [Aluxes:HP]
@>Control Variiable[0012:BHeroHealth]== [Basil:HP]
@>Control Variiable[0013:GHeroHealth]== [Gloria:HP]
@>Control Variiable[0014:HHeroHealth]== [Hilda:HP]
@>Conditional Branch [Variable - 0011:AHeroHealth]<- 0
  @>Conditional Branch [Switch - 0021:AluxesDead] == OFF
    @>SHOW PICTURE[006, "AluxesOuch",220,360, 255]
    @>MOVE PICTURE[006, 0, 40frame(s)
    @>Control Switch[0021:AluxesOuch] == ON
  @>end
@>end
@>Conditional Branch [Variable - 0012:BHeroHealth]<- 0
  @>Conditional Branch [Switch - 0022:BasilDead] == OFF
    @>SHOW PICTURE[007, "BaslOOF",340,360, 255]
  ===etc===

I am kinda spitballing, so this is not tested. I am thinking that this could be pasted within your individual TROOPS database pages that are set to run all the time to detect HP changes, both for heroes and enemies.

If the player formation doesn't change in-game, this would work. And it would work for the enemies as well, this assuming it is used in the desired individual TROOP pages. If for the actors, this would be used in every page. And this could be adapted for the enemies.

Again, spitballing as I am not at a PC with RPGMaker.


RE: How do I make a PNG image (or animation) show up when a character dies? - Ace_V - 08-29-2025

(8 hours ago)DerVVulfman Wrote: Currently, I am without my main system ... ergo without RPGMaker. But I am wondering if this can merely be done within the TROOPS database.

The 'collapse' effect which changes the default battler red and fades the battler away is done because it it is a sprite object.  That being an object that is given and holds a picture image (imagine a picture frame), and it is the frame that is controlled by such effects.  And when one uses the [SHOW PICTURE] event, they are actually creating a sprite to hold a picture.
Code:
@>Control Variiable[0011:AHeroHealth]== [Aluxes:HP]
@>Control Variiable[0012:BHeroHealth]== [Basil:HP]
@>Control Variiable[0013:GHeroHealth]== [Gloria:HP]
@>Control Variiable[0014:HHeroHealth]== [Hilda:HP]
@>Conditional Branch [Variable - 0011:AHeroHealth]<- 0
  @>Conditional Branch [Switch - 0021:AluxesDead] == OFF
    @>SHOW PICTURE[006, "AluxesOuch",220,360, 255]
    @>MOVE PICTURE[006, 0, 40frame(s)
    @>Control Switch[0021:AluxesOuch] == ON
  @>end
@>end
@>Conditional Branch [Variable - 0012:BHeroHealth]<- 0
  @>Conditional Branch [Switch - 0022:BasilDead] == OFF
    @>SHOW PICTURE[007, "BaslOOF",340,360, 255]
  ===etc===

I am kinda spitballing, so this is not tested.  I am thinking that this could be pasted within your individual TROOPS database pages that are set to run all the time to detect HP changes, both for heroes and enemies.

If the player formation doesn't change in-game, this would work.  And it would work for the enemies as well, this assuming it is used in the desired individual TROOP pages.  If for the actors, this would be used in every page.    And this could be adapted for the enemies.

Again, spitballing as I am not at a PC with RPGMaker.

Hi, DerVVulfman! Would this mean I'd have to set it up for every troop entry in the database? I was hoping it would be more of mechanic, as I currently have over 200 entries in the Troop database tab and 32 characters in the game (though I only plan on putting a death message for three or four of them).  Confused