Using Sine behavior for Flash-like animation

Get help using Construct 2

Post » Thu Oct 27, 2011 10:27 am

Are there any good examples of this anywhere? I've been trying my hand at it, and it's... decent, but I can't get it to look quite right. Some kind of tutorial from a master animator would be a miracle right about now.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Thu Oct 27, 2011 7:11 pm

For smooth flashing:
Once per second:
Set Opacity: 50*sin(time*360)+50

Twice per second:
Set Opacity: 50*sin(time*360*2)+50

Or for a traditional flash (visible/invisible):
Set Opacity: 100*(sin(time*360*2)>0)
B
79
S
24
G
54
Posts: 4,738
Reputation: 40,739


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Braus, GenkiGenga, Kagubro, Mirlas, zeneizel and 24 guests