Object in mid-fade?

  • Is there a way to know when an object is currently fading in or out? I know I can catch it when the fade is complete (only fade out, not in?), but I'd like to know when it's in mid-fade.

    When I click a certain object, I want another object to either fade in or out. It works ok, but if you click again before the first fade is finished, it keeps restarting which doesn't look very good. I'd like to wait for the fade to finish before another click is allowed. I know you can catch when a fade out is finished, but not fade in apparently. If you could catch fade in finished, then I could set a boolean to true when the object is clicked and then set it to false when the fade finishes. But I can't do that because I don't know how to work out when fade in has completed.

  • Maybe you could use the objects opacity? Objects have opacity 0 to 100, so you could use the object condition opacity = 100 to test for fade in.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah of course, that's perfect because it tests either way. I only want the click to register if the fade is complete in either direction (i.e totally opaque or invisible), so I can just test for any mid-range opacity. Only just noticed you can test for opacity, thanks :)

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