Skip to main content

EaseBy

Used for implementing actions for the 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

    id

    id: number = ...

    Methods

    publicisComplete

    • isComplete(): boolean
    • Returns boolean

    publicreset

    • reset(): void
    • Returns void

    publicstop

    • stop(): void
    • Returns void

    publicupdate

    • update(elapsedMs: number): void
    • Parameters

      • elapsedMs: number

      Returns void