Skip to main content

ScaleBy

Used for implementing actions for the Action API.

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ScaleBy(entity: Entity<any>, scaleOffsetX: number, scaleOffsetY: number, speed: number): ScaleBy
  • Parameters

    • entity: Entity<any>
    • scaleOffsetX: number
    • scaleOffsetY: number
    • speed: number

    Returns ScaleBy

Properties

id

id: number = ...

publicx

x: number

publicy

y: 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