Hello guest! Login or Register
Construct 2 r90

Released Friday, May 11, 2012 at 2:01:09 PM

28mb for Windows XP, Vista & 7

Free Download
Download Manual

Coming Soon

Fade behavior


The Fade behavior fades objects in and out by changing the object's opacity over time. By default, it makes an object fade out over 1 second then destroys it.

Fades run in the following order. If any of the times are 0, the step is skipped.
1. The object fades in from invisible to its set opacity, over the Fade in time.
2. The object remains at its current opacity for the Wait time.
3. The object fades out to invisible, over the Fade out time.
4. If Destroy is set to After fade out, the object is then destroyed.

For example, with each time set to 1 second, the object will fade in from invisible for 1 second, wait for 1 second, then fade out to invisible for 1 second.

It is recommended to leave Destroy set to After fade out. If set to No, the object still exists after fading out, but is invisible. If many objects are using the Fade behavior, this can build up many invisible objects over time, which gradually use more memory and CPU causing the game to slow down.

Fade properties


Fade in time
Time, in seconds, to fade in from invisible. If 0, the fade in is skipped.

Wait time
Time, in seconds, to wait between fade in and fade out. If 0, the step is skipped.

Fade out time
Time, in seconds, to fade out to invisible. If 0, the fade out is skipped.

Destroy
If set to After fade out, the object is automatically destroyed after the fade out finishes. If No, the object is never destroyed by the behavior. Be sure to destroy objects yourself as necessary, as a build-up of invisible faded-out objects can cause the game to slow down.

Fade conditions


On fade out finished
Triggered when the fade out finishes.

Fade actions


Restart fade
Run the entire fade from the beginning again.

Fade expressions


The Fade behavior has no expressions.

Previous Entry
Drag & Drop
Next Entry
Flash

Feedback on this page
How useful was this page for you?
Do you have any suggestions for this page?