How do I make an object fade away?

  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

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

  • 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.

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)