How do I make a PNG image (or animation) show up when a character dies?
#6
(08-30-2025, 04:58 AM)kyonides Wrote: You'd have to manually add the collapse method to the Sprite_Battler class to make it appear.

You gotta know that RPG::Sprite already has a collapse method, BUT not all of your sprites have to show those last words before disappearing. That's why I recommended to add it to Sprite_Battler and call super like I did there to let it apply RPG::Sprite's collapse method's effects accordingly.

The disposal of that custom sprite of yours was a bit tricky, but you can simply alias Sprite_Battler's update method and add your custom code there. You can take a look at my example to get an idea on how to do it.

NOTES

This piece of code assumes you already know how to create sprites and add bitmaps to them.
@last_words is a flag you desperately need to keep track of your Last Words process at all times.

Hi, kyonides! I've only got a very basic understanding of code, so this is very tricky for me  Laughing Is alias similar to creating a common event, so it is easier to call a series of commands?
[Image: SP1-Writer.png]
[Image: SP1-PixelArtist.png]
Reply


Messages In This Thread
RE: How do I make a PNG image (or animation) show up when a character dies? - by Ace_V - 08-31-2025, 08:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Is there a script to make train actors face the same way as the player? Ace_V 12 1,458 04-07-2026, 10:01 AM
Last Post: Ace_V
   How do I make skills that never miss, and a status that causes skills to never miss? Ace_V 3 1,161 02-18-2026, 02:51 PM
Last Post: Ace_V
   Image transitions FriKitty 2 4,889 11-24-2024, 05:00 AM
Last Post: DerVVulfman
   Animation Action justpassingby 16 30,609 11-06-2017, 01:59 AM
Last Post: justpassingby
   Scan skill should show states Tumen 5 14,990 05-02-2017, 03:33 AM
Last Post: DerVVulfman
   Custom Message by Hodgeelmf, need to make it above picture LunarBerry 6 18,018 05-09-2016, 01:15 AM
Last Post: LunarBerry
   Atoa Custom Battle System CTB animation while cast Noctis 6 18,317 01-04-2016, 03:05 PM
Last Post: Noctis
   show variables on screen rpg maker xp ThePrinceofMars 22 53,428 10-19-2014, 08:01 PM
Last Post: ThePrinceofMars
  Make LockeZ's Sacrifice script Blizzard Compatible Steel Beast 6Beets 0 5,309 05-29-2014, 02:13 AM
Last Post: Steel Beast 6Beets
   Help editing Animation Resizer MechanicalPen 3 9,616 11-22-2012, 08:39 PM
Last Post: MechanicalPen



Users browsing this thread: 1 Guest(s)