Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Making an object flash white to convey an invincibility frame

Hello everyone,

I'm looking to reproduce a visual effect which makes an object flash solid white for a few frames before returning it back to normal. It's popular effect famously used in arcade style games to visually communicate that something has just been hit and has been damaged. A similar effect is often also used to indicate when a player has (re)spawned into the level and has a few seconds of invincibility. My quick attempt to find an example gif on google image search has come up empty, but I hope that the above description is sufficient to convey what I'm referring to.

Anyway, I'm looking for a little bit of guidance as I'm not so familiar with the material editor in UE4 (that is to say, I've spent a lot of time in it, but I still don't know what I'm doing most of the time). Any help is much appreciated.

Thanks for your time,


Product Version: Not Selected
more ▼

asked Sep 09 '14 at 10:34 PM in Rendering

avatar image

204 26 28 93

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hey zerofiftyone -

You can build the flashing into an opacity mask which is controlled by a scalar parameter in a blueprint. What does you character's material look like and I can give you more specifics.

Thank You

Eric Ketchum

more ▼

answered Sep 11 '14 at 09:41 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.6k 703 260 737

avatar image zerofiftyone Sep 12 '14 at 01:14 AM

Here is a screenshot of the pawn's main material: Here is a screenshot of the pawn's main material The material is used for the base colour of the player pawn. In blueprint, a material instance is made and configured to change the base colour ending up with something like this

Thanks for your time.

avatar image Lovecraft_K ♦♦ STAFF Sep 12 '14 at 03:38 PM

Hey you go zerofiftyone -

Your material should be set to Masked and the Opacity Mask Clip Value should be set to 0.5 and depending on your character you probably will also want to set to Two Sided.

Material: alt text

The Effect Running: alt text

Thank You

Eric Ketchum

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I know it's not exactly what you asked for, but you could just make the mesh go visible and invisible quickly and repeatedly on a timer:

alt text

set-visibility.png (36.2 kB)
more ▼

answered Sep 10 '14 at 10:25 AM

avatar image

354 13 9 25

avatar image zerofiftyone Sep 10 '14 at 11:03 AM

Yeah, that's what I've been using thus far as a low effort workaround. It does the job, but it's not really the effect I'm after any more.

Still, thanks for the help.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question