How do I make a PNG image (or animation) show up when a character dies?
#1
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!


Attached Files Thumbnail(s)
       
[Image: SP1-Writer.png]
[Image: SP1-PixelArtist.png]
Reply
#2
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.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply
#3
(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
[Image: SP1-Writer.png]
[Image: SP1-PixelArtist.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
   Image transitions FriKitty 2 2,487 11-24-2024, 05:00 AM
Last Post: DerVVulfman
   Animation Action justpassingby 16 23,174 11-06-2017, 01:59 AM
Last Post: justpassingby
   Scan skill should show states Tumen 5 11,621 05-02-2017, 03:33 AM
Last Post: DerVVulfman
   Custom Message by Hodgeelmf, need to make it above picture LunarBerry 6 14,353 05-09-2016, 01:15 AM
Last Post: LunarBerry
   Atoa Custom Battle System CTB animation while cast Noctis 6 14,382 01-04-2016, 03:05 PM
Last Post: Noctis
   show variables on screen rpg maker xp ThePrinceofMars 22 42,142 10-19-2014, 08:01 PM
Last Post: ThePrinceofMars
  Make LockeZ's Sacrifice script Blizzard Compatible Steel Beast 6Beets 0 4,096 05-29-2014, 02:13 AM
Last Post: Steel Beast 6Beets
   Help editing Animation Resizer MechanicalPen 3 7,287 11-22-2012, 08:39 PM
Last Post: MechanicalPen
   Auto-play Character animation Taylor 0 3,897 05-30-2012, 11:56 AM
Last Post: Taylor
   How do you make a call script? firestalker5 0 3,978 04-21-2011, 05:22 AM
Last Post: firestalker5



Users browsing this thread: 1 Guest(s)