How do I make an object fade away?

Get help using Construct 2

Post » Fri May 29, 2015 5:20 pm

How do I make an object fade away?

I want it to when I touch a certain object, it doesn't just destroy. I want the object to sort of 'fade' out, then destroy. How do I do that?
B
4
Posts: 15
Reputation: 226

Post » Fri May 29, 2015 5:33 pm

Pretty simply, my friend. In the properties of your character, look for Behavior.
Click in add/edit behaviors, a pop-up window appear.
Click in the plus icon to add a new behavior.
Look for "Fade" and add it.
Now in Properties, look for the Fade properties:
Change "Active at start" to No

Now in events:
Condition = Colides with object = Action = Start Fade

Now your character will fade out and destroy. You can change the fading speed at the properties too.

I hope I could be able to help you. :)
B
6
S
2
G
1
Posts: 13
Reputation: 551

Post » Fri May 29, 2015 5:35 pm

Oh, it's just a behavior! I didn't really need the full detailed guide, but thanks for your will to teach!
B
4
Posts: 15
Reputation: 226

Post » Fri May 29, 2015 5:37 pm

You could also do it manually with events with something simple like this,

objects opacity > 0 set objects opacity to objects opacity - whatever*60*dt.
objects opacity = 0 destroy object.
B
43
S
23
G
21
Posts: 735
Reputation: 12,132

Post » Fri May 29, 2015 5:40 pm

WilliamNet4 wrote:Oh, it's just a behavior! I didn't really need the full detailed guide, but thanks for your will to teach!


I'm sorry for the too detailed explanation, I didn't know you has knownledge of the program. But I'm glad for helping. :) The behavior works well, but if you need to be more specific (advanced), you could also try @Ethan 's idea. :)
B
6
S
2
G
1
Posts: 13
Reputation: 551


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests