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
70
S
13
G
2
Posts: 989
Reputation: 6,914

Post » Wed Dec 23, 2015 8:21 pm

You can also use the pulse WebGL effect I think
Image
B
27
S
5
G
2
Posts: 194
Reputation: 2,968

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
70
S
13
G
2
Posts: 989
Reputation: 6,914

Post » Wed Dec 23, 2015 8:37 pm

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

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
70
S
13
G
2
Posts: 989
Reputation: 6,914

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
36
S
15
G
1
Posts: 59
Reputation: 3,441

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
70
S
13
G
2
Posts: 989
Reputation: 6,914


Return to How do I....?

Who is online

Users browsing this forum: MAVERICK, tarek2 and 5 guests