How do I Sum value to effect every tick

Get help using Construct 2

Post » Fri Aug 07, 2015 10:49 pm

my event its [every 0.5 seconds set effect parameter index 0 , value +1] and i get syntax error, i tried 1 +1 and i dont get the syntax error but didn't work, i want to add +1 every 0.5 seconds to the value of effect, i tried with a variable ( sprite.valueeffect +1 ) and didn't work, please explain me why?
B
9
S
3
Posts: 142
Reputation: 1,108

Post » Fri Aug 07, 2015 10:57 pm

It might depend on the effect. Which one are you using?
Edit: are you incrementing the value first?
ImageImageImage
B
71
S
21
G
220
Posts: 3,649
Reputation: 123,727

Post » Fri Aug 07, 2015 11:06 pm

thank you! i solved it using a variable, i just put: every 0.05 seconds -> set effect "pixellated" parameter 0 to sprite.effect , ADD 1 to effect, and now its working!
B
9
S
3
Posts: 142
Reputation: 1,108


Return to How do I....?

Who is online

Users browsing this forum: apalm1341, blissfulwizard, Malhog and 16 guests