Creating a delay function in the material.

maybe this is your answer