Skip to main content

ScaleTo

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

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(elapsed: number): void
  • Parameters

    • elapsed: number

    Returns void