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,117

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
92
S
32
G
106
Posts: 5,272
Reputation: 69,455


Return to How do I....?

Who is online

Users browsing this forum: fearfulelephants and 22 guests