How do I create a pulse effect

Get help using Construct 2

Post » Wed Dec 23, 2015 8:07 pm

I need to create a pulse effect that change the opacity to more and less, smooth and continually. I thought to use a fade behaviour or create the animation frames (it's not a problem for me), but before I wonder if there is another solution and which one is better.
B
74
S
14
G
4
Posts: 1,050
Reputation: 8,205

Post » Wed Dec 23, 2015 8:21 pm

You can also use the pulse WebGL effect I think
Image
B
44
S
10
G
2
Posts: 252
Reputation: 3,984

Post » Wed Dec 23, 2015 8:28 pm

Interesting. But this effect can affect the performance?

And about lerp? Is a good option to a continuous animation? If yes, how can I create a mechanism using lerp? (I know that I need to use something like this: lerp(Self.Opacity, 0, 5 * dt) / lerp(Self.Opacity, 100, 5 * dt) , but I don't know how can I loop it)
B
74
S
14
G
4
Posts: 1,050
Reputation: 8,205

Post » Wed Dec 23, 2015 8:37 pm

You could use the sine-behavior. That has an option for opacity.
B
26
S
3
G
1
Posts: 494
Reputation: 2,318

Post » Wed Dec 23, 2015 8:50 pm

Very nice, @Asmodean. it's exactly what i need. I always use sine for movements, but just it.
B
74
S
14
G
4
Posts: 1,050
Reputation: 8,205

Post » Wed Dec 23, 2015 9:21 pm

Hey @RenatoB hi.
There is also the flash behavior and dont forget the lite tween behavior from lunarray (it is more powerful than the sine behavior for sure) but i think for a pulse effect the sine behavior will work fine.
Cheers.
B
42
S
17
G
1
Posts: 63
Reputation: 3,776

Post » Wed Dec 23, 2015 10:09 pm

saour wrote:Hey @RenatoB hi.
There is also the flash behavior and dont forget the lite tween behavior from lunarray (it is more powerful than the sine behavior for sure) but i think for a pulse effect the sine behavior will work fine.
Cheers.


Thanks, @saour
B
74
S
14
G
4
Posts: 1,050
Reputation: 8,205


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, Google [Bot], inozz, TheMob000 and 0 guests