Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScaleTo

Hierarchy

  • ScaleTo

Implements

Index

Constructors

constructor

  • new ScaleTo(actor: Actor, scaleX: number, scaleY: number, speedX: number, speedY: number): ScaleTo
  • Parameters

    • actor: Actor
    • scaleX: number
    • scaleY: number
    • speedX: number
    • speedY: number

    Returns ScaleTo

Properties

Private _actor

_actor: Actor

Private _distanceX

_distanceX: number

Private _distanceY

_distanceY: number

Private _endX

_endX: number

Private _endY

_endY: number

Private _speedX

_speedX: number

Private _speedY

_speedY: number

Private _startX

_startX: number

Private _startY

_startY: number

Private _started

_started: boolean = false

Private _stopped

_stopped: boolean = false

x

x: number

y

y: number

Methods

isComplete

  • isComplete(actor: Actor): boolean
  • Parameters

    Returns boolean

reset

  • reset(): void
  • Returns void

stop

  • stop(): void
  • Returns void

update

  • update(delta: number): void
  • Parameters

    • delta: number

    Returns void