How do I set timer on effect?

Just started using Construct 2? Post your questions here

Post » Thu Mar 13, 2014 5:28 pm

I need to create effects on impact with item and then get the effect wear off after some time.
B
3
Posts: 2
Reputation: 179

Post » Fri Mar 14, 2014 2:08 am

You can add the Fade behavior to it
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Fri Mar 14, 2014 11:15 am

@ Questo - are you talking about the built in effects or thing like using particles to simulate smoke (for example)?
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Fri Mar 14, 2014 11:37 am

Couldn't resist having a quick play. Hope it helps.
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Fri Mar 14, 2014 12:37 pm

I meant the effects that can be set for whole layer.
B
3
Posts: 2
Reputation: 179

Post » Fri Mar 14, 2014 1:10 pm

slight edit to capx to add layer fx.
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Fri Mar 14, 2014 6:38 pm

Use a variable to count the time. Like

On collision: set variable to 100
Every tick set variable to: clamp(variable-(60*dt),0,100)

Then you can set your effect in relation to this timer.
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests