Skip to main content

EaseBy

Used for implementing actions for the [[ActionContext|Action API]].

Implements

Index

Constructors

constructor

  • new EaseBy(entity: Entity<any>, offsetX: number, offsetY: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number): EaseBy
  • Parameters

    • entity: Entity<any>
    • offsetX: number
    • offsetY: number
    • duration: number
    • easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number

    Returns EaseBy

Properties

publiceasingFcn

easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number

Type declaration

    • (currentTime: number, startValue: number, endValue: number, duration: number): number
    • Parameters

      • currentTime: number
      • startValue: number
      • endValue: number
      • duration: number

      Returns number

Methods

publicisComplete

  • isComplete(): boolean
  • Returns boolean

publicreset

  • reset(): void
  • Returns void

publicstop

  • stop(): void
  • Returns void

publicupdate

  • update(delta: number): void
  • Parameters

    • delta: number

    Returns void