Skip to main content

MoveBy

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

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new MoveBy(entity: Entity<any>, offsetX: number, offsetY: number, speed: number): MoveBy
  • Parameters

    • entity: Entity<any>
    • offsetX: number
    • offsetY: number
    • speed: number

    Returns MoveBy

Properties

publicx

x: number

publicy

y: number

Methods

publicisComplete

  • isComplete(entity: Entity<any>): boolean
  • Parameters

    Returns boolean

publicreset

  • reset(): void
  • Returns void

publicstop

  • stop(): void
  • Returns void

publicupdate

  • update(_delta: number): void
  • Parameters

    • _delta: number

    Returns void