Making a Map Sprite flash when they take damage NOT related to floor damage or poison?

How do you make a sprite flash when taking damage on the map when it's not related to the floor or poison damage?

I want to set a trap in a chest. When it's opened it explodes and damages the player. The player jumps back as if by the blast and his HP is lowered... But without opening the menu you wouldn't know that.

So is there a way to make the sprite flash a few times when they take damage on the map?
Would it be possible to make an animation in the Database that you can call "Character Flash" or "Flash" or whatnot that you set the flash as the Target (as opposed to Screen)--even a red flash for damage would work fine, and then make the event that calls on that animation to insert when the chest is opened? If I misunderstood what you're wanting, I apologize!
Yeah just play animation on the player character.
Would it be possible to make an animation in the Database that you can call "Character Flash" or "Flash" or whatnot that you set the flash as the Target (as opposed to Screen)--even a red flash for damage would work fine, and then make the event that calls on that animation to insert when the chest is opened? If I misunderstood what you're wanting, I apologize!
Yeah just play animation on the player character.
I tried this and it only affects the actors in a battle... Otherwise, it plays the animation with a screen flash but nothing when you set it for target flash.
Works for me in a blank project, please show your event and animation from the database and or any plugins that might change how animations are handled.
Works for me in a blank project, please show your event and animation from the database and or any plugins that might change how animations are handled.
So.... I got it to work, but I had to make two animations. one for the explosion on the chest and the other just a target flash on the player. I called them at the same time and it works fine like that.

I had the explosion on the chest so when the player jumped back it didn't look like the flash worked, because it was making the chest flash - since the chest of the target. But if I changed the animation to the player then the explosion "followed" the player as they jumped back and that wasn't what I wanted, the animation covered up the player's flashing effect.

So, I didn't think it was working.

Making a second animation that just makes the player flash and using it at the same time does the trick.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-map-sprite-flash-when-they-take-damage-not-related-to-floor-damage-or-poison.171216/