# Let enemy blink when hit - how?

**URL:** <https://forum.kirupa.com/t/let-enemy-blink-when-hit-how/323578>\
**Category:** Uncategorized\
**Created:** [July 7, 2011, 9:17pm UTC](https://forum.kirupa.com/t/let-enemy-blink-when-hit-how/323578 "2011-07-07T21:17:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drpelz](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@drpelz](https://forum.kirupa.com/u/drpelz)\
**Post date:** [July 7, 2011, 9:17pm UTC](https://forum.kirupa.com/t/let-enemy-blink-when-hit-how/323578/1 "2011-07-07T21:17:06Z")

</div>

Hi folks,

I would like to know what’s the best deal when I want the enemies blink when hitting them with a shot?

I mean - is it better to pre-render colored enemies into an array for a better performance or is it just okay coloring them during gameplay?

E.g. you can use the colorMatrixFilter- or colorTransform-methods for accomplishing this. Pre-rendering it (mentioned before) and storing the colored enemies inside of an array is an option also.

I ask because I’m not sure how those mentioned methods influence gameplay…especially for action games. What is faster - what slower? What should I avoid? TIA!🙂
