Flashing Light Material, one on, one off

Hi,

I’ve just started with UE5 and I’m trying to get two lights materials to flash in order. The red light flashes, then the blue. However I can’t see a way to change the starting time of the material so they are synced differently.

Here’s my basic material for the red light material (blue material is the same, just blue):

The car:
Screenshot 2022-11-05 145044

Try using a sin in one and a cos in the other :slight_smile: ( I don’t know if those nodes are synced, seems to work )

alt

PS, using a trig function usually works better with this chain after it

So it goes between 0 and 1, instead of -1 and 1.

Hi,

thanks, it appears to work! although it’s hard on the eyes after a while :wink:

I’m not sure what you meant with using a “trig function”? The blueprint I wasn’t sure what to do with.

Trigonometry ( sine / cosine ).

It’s not a blueprint, it’s part of my material.

You can put it in your material, here

Because, at the moment, half of the sine wave is doing nothing.

Hi,

beginner mistake, I didn’t mean ‘blueprint’, still getting used to the terminology :wink:

I wasn’t sure how to add/change/connect my nodes with what you have.

1 Like