A_FadeIn

From ZDoom Wiki
Jump to navigation Jump to search

A_FadeIn [(float increase_amount [, int flags])]

Usage

Increases the actor's opacity (alpha) by the specified amount. This can be used to slowly fade in some things in a loop.

Parameters

  • increase_amount: The amount by which to increase the actor's alpha. Default is 0.1.
  • flags: The following flags can be combined using the pipe character | between the constant names:
    • FTF_REMOVE — the actor is removed from the game once its alpha reaches 1.0.
    • FTF_CLAMP — the alpha cannot go above 1.0.

Examples

This cacodemon fireball slowly fades into existence when it is fired.

ACTOR Ghostball : CacodemonBall
{
  RenderStyle "Translucent"
  Alpha 0
  States
  {
  Spawn:
    BAL2 AB 4 Bright A_FadeIn(0.2)
    Loop
  }
}

See Also