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
   Image transitions FriKitty 2 2,526 11-24-2024, 05:00 AM
Last Post: DerVVulfman
   Animation Action justpassingby 16 23,285 11-06-2017, 01:59 AM
Last Post: justpassingby
   Scan skill should show states Tumen 5 11,676 05-02-2017, 03:33 AM
Last Post: DerVVulfman
   Custom Message by Hodgeelmf, need to make it above picture LunarBerry 6 14,402 05-09-2016, 01:15 AM
Last Post: LunarBerry
   Atoa Custom Battle System CTB animation while cast Noctis 6 14,441 01-04-2016, 03:05 PM
Last Post: Noctis
   show variables on screen rpg maker xp ThePrinceofMars 22 42,275 10-19-2014, 08:01 PM
Last Post: ThePrinceofMars
  Make LockeZ's Sacrifice script Blizzard Compatible Steel Beast 6Beets 0 4,112 05-29-2014, 02:13 AM
Last Post: Steel Beast 6Beets
   Help editing Animation Resizer MechanicalPen 3 7,324 11-22-2012, 08:39 PM
Last Post: MechanicalPen
   Auto-play Character animation Taylor 0 3,908 05-30-2012, 11:56 AM
Last Post: Taylor
   How do you make a call script? firestalker5 0 4,002 04-21-2011, 05:22 AM
Last Post: firestalker5



Users browsing this thread: 1 Guest(s)