Skip to main content

ScaleTo

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

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ScaleTo(entity: Entity<any>, scaleX: number, scaleY: number, speedX: number, speedY: number): ScaleTo
  • Parameters

    • entity: Entity<any>
    • scaleX: number
    • scaleY: number
    • speedX: number
    • speedY: number

    Returns ScaleTo

Properties

publicx

x: number

publicy

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