Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Fade

Hierarchy

  • Fade

Implements

Index

Constructors

constructor

  • new Fade(actor: Actor, endOpacity: number, speed: number): Fade
  • Parameters

    • actor: Actor
    • endOpacity: number
    • speed: number

    Returns Fade

Properties

Private _actor

_actor: Actor

Private _endOpacity

_endOpacity: number

Private _multiplier

_multiplier: number = 1

Private _speed

_speed: number

Private _started

_started: boolean = false

Private _stopped

_stopped: boolean = false

x

x: number

y

y: number

Methods

isComplete

  • isComplete(actor: Actor): boolean
  • Parameters

    Returns boolean

reset

  • reset(): void
  • Returns void

stop

  • stop(): void
  • Returns void

update

  • update(delta: number): void
  • Parameters

    • delta: number

    Returns void