How do I make a fade with a "trigger" condition..?

0 favourites
  • 3 posts
  • Hello all,

    Perhaps this is mentioned somewhere else, but I can't find a relevant post and I can't seem to wrap my mind around this problem.

    I want a "trigger" condition (you know the ones with the green arrow) to evoke an action continuously, not just once.

    Let's say that I want to make a fade out.

    I understand how to do it with "when overlap with" for example, you do a "set opacity to self.Opacity - 100 * dt"...

    But how can I have the same result if I want to use the "timer" behavior and I want to trigger a fade with an "on timer" condition?

    Or with an "on click" with the mouse...?

    Adding a sub-event and putting the actions there doesn't do any good, it just triggers once too...

    There must be a simple solution around this, I'd really appreciate any help I can get!!!

    Thank you,


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Assuming you don't like how the default Fade behaviour works, you'd use the timer to set a variable, that you are checking (Every tick, for example). If it's set you call the fade code. Reset the variable when your fade is done.

  • blackhornet,

    Oh, thank you so much! I would have never thought this by my self <img src="smileys/smiley9.gif" border="0" align="middle" />

    You are correct, the fade out was just an example, I wanted to understand the logic behind a possible solution that applies to situations that aren't covered with behaviors.

    Best regards,


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