Effect value

Get help using Construct 2

Post » Wed Feb 11, 2015 4:31 pm

Hi all, hope someone can help me here. I'm trying to use the "noise" effect. It starts off with a set "INTENSITY" and woud like to change that, when the player hit's the X button. I can do it for the 1 click, but cant seem to get it to decrease by "somenumber" on every click. Any suggestions? thx
B
9
S
2
Posts: 104
Reputation: 1,098

Post » Wed Feb 11, 2015 4:41 pm

Well, you have to have a variable that you change over time and then assign it to the effect - the effect itself is "dumb" and does not remember any values, just what you pass to it.

Say:
NoiseStrength = 100
Every tick: NoiseStrenght - dt*100, set effect Noise param 0 to NoiseStrength

Would make the noise disappear within a second.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Wed Feb 11, 2015 7:52 pm

@somebody, thanks for that. It not working out for me. When I click, I'd like to make the effect strength go down by x. Not by time. any suggestions. thx
B
9
S
2
Posts: 104
Reputation: 1,098

Post » Wed Feb 11, 2015 7:57 pm

NoiseStregth - x, set effect Noise param 0 to NoiseStrength
Image
B
14
S
3
G
1
Posts: 61
Reputation: 993


Return to How do I....?

Who is online

Users browsing this forum: Curler and 13 guests